Package org.beangle.security.cas.auth

Examples of org.beangle.security.cas.auth.CasAuthentication


    if (password == null) {
      return null;
    } else {
      String url = CommonUtils.constructServiceUrl(request, response, null, config.getLocalServer(),
          "ticket", config.isEncode());
      return new CasAuthentication(username, password, url);
    }
  }
View Full Code Here


  private CasConfig config;

  public boolean check(Authentication auth, HttpServletRequest request) {
    if (auth instanceof CasAuthentication) {
      CasAuthentication casAu = (CasAuthentication) auth;
      String key = (String) casAu.getAssertion().getAttributes().get("caKey");
      if (null != key) {
        String text = HttpUtils.getResponseText(StrUtils.concat(config.getCasServer(),
            config.getCheckAliveUri(), "?", config.getArtifactName(), "=", key));
        return StringUtils.contains(text, "true");
      }
View Full Code Here

  private CasConfig config;

  public boolean check(Authentication auth, HttpServletRequest request) {
    if (auth instanceof CasAuthentication) {
      CasAuthentication casAu = (CasAuthentication) auth;
      String key = (String) casAu.getAssertion().getTicket();
      if (null != key) {
        String text = HttpUtils.getResponseText(StrUtils.concat(config.getCasServer(),
            config.getCheckAliveUri(), "?", config.getArtifactName(), "=", key));
        return StringUtils.contains(text, "true");
      }
View Full Code Here

    if (password == null) {
      return null;
    } else {
      String url = CasEntryPoint.constructServiceUrl(request, response, null, config.getLocalServer(),
          "ticket", config.isEncode());
      return new CasAuthentication(username, password, url);
    }
  }
View Full Code Here

    if (password == null) {
      return null;
    } else {
      String url = CommonUtils.constructServiceUrl(request, response, null,
          config.getLocalServer(), "ticket", config.isEncode());
      return new CasAuthentication(username, password, url);
    }
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.cas.auth.CasAuthentication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.