Package org.jboss.identity.federation.core.wstrust

Examples of org.jboss.identity.federation.core.wstrust.RequestSecurityToken


         if (object instanceof JAXBElement)
         {
            JAXBElement<?> element = (JAXBElement<?>) object;
            if (element.getDeclaredType().equals(RequestSecurityTokenType.class))
            {
               RequestSecurityToken parsedRequest = new RequestSecurityToken((RequestSecurityTokenType) element
                     .getValue());
               // insert the request target in the parsed request.
               if (targetElement != null)
               {
                  if (parsedRequest.getValidateTarget() != null)
                     parsedRequest.getValidateTarget().setAny(targetElement);
                  else if (parsedRequest.getRenewTarget() != null)
                     parsedRequest.getRenewTarget().setAny(targetElement);
                  else if (parsedRequest.getCancelTarget() != null)
                     parsedRequest.getCancelTarget().setAny(targetElement);
               }
               return parsedRequest;
            }
            else
               throw new RuntimeException("Invalid request type: " + element.getDeclaredType());
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.core.wstrust.RequestSecurityToken

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.