Package org.jboss.identity.federation.api.wstrust

Examples of org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler


         catch (ConfigurationException e)
         {
            throw new WebServiceException("Encountered configuration exception:", e);
         }
     
      WSTrustRequestHandler handler = this.config.getRequestHandler();
      String requestType = request.getRequestType().toString();

      try
      {
         if (requestType.equals(WSTrustConstants.ISSUE_REQUEST))
            return this.marshallResponse(handler.issue(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.RENEW_REQUEST))
            return this.marshallResponse(handler.renew(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.CANCEL_REQUEST))
            return this.marshallResponse(handler.cancel(request, this.context.getUserPrincipal()));
         else if (requestType.equals(WSTrustConstants.VALIDATE_REQUEST))
            return this.marshallResponse(handler.validate(request, this.context.getUserPrincipal()));
         else
            throw new WSTrustException("Invalid request type: " + requestType);
      }
      catch (WSTrustException we)
      {
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.api.wstrust.WSTrustRequestHandler

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.