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

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


    * @return the resulting {@code Source} instance.
    */
   protected Source marshallResponse(RequestSecurityTokenResponse response)
   {
      // add the single response to a RequestSecurityTokenResponse collection, as per the specification.
      RequestSecurityTokenResponseCollection responseCollection = new RequestSecurityTokenResponseCollection();
      responseCollection.addRequestSecurityTokenResponse(response);
      return WSTrustJAXBFactory.getInstance().marshallRequestSecurityTokenResponse(responseCollection);
   }
View Full Code Here


         if (object instanceof JAXBElement)
         {
            JAXBElement<?> element = (JAXBElement<?>) unmarshaller.unmarshal(response);
            if (element.getDeclaredType().equals(RequestSecurityTokenResponseCollectionType.class))
            {
               RequestSecurityTokenResponseCollection collection = new RequestSecurityTokenResponseCollection(
                     (RequestSecurityTokenResponseCollectionType) element.getValue());
               // insert the security token in the parsed response.
               if (tokenElement != null)
               {
                  RequestSecurityTokenResponse parsedResponse = collection.getRequestSecurityTokenResponses().get(0);
                  parsedResponse.getRequestedSecurityToken().setAny(tokenElement);
               }
               return collection;
            }
            else
View Full Code Here

TOP

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

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.