Package org.openrdf.http.protocol.cas

Examples of org.openrdf.http.protocol.cas.AuthSuccess


    try {
      Representation validationResult = serviceValidate.get();
      ServiceResponse serviceResponse = ServiceResponseParser.parse(validationResult.getStream());

      if (serviceResponse instanceof AuthSuccess) {
        AuthSuccess authSuccess = (AuthSuccess)serviceResponse;
        request.getClientInfo().setUser(new User(authSuccess.getUser()));
        logger.debug("Validated CAS-ticket for user '{}'", authSuccess.getUser());

        if (authSuccess.getProxyGrantingTicket() != null) {
          String pgtId = pgtIouMap.remove(authSuccess.getProxyGrantingTicket());
          if (pgtId != null) {
            ProxyGrantingTicketRegistry.storeProxyGrantingTicket(pgtId);
          }
          else {
            logger.warn("pgtIou mapping missing for validated user '{}'", authSuccess.getUser());
          }
        }

        return true;
      }
View Full Code Here

TOP

Related Classes of org.openrdf.http.protocol.cas.AuthSuccess

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.