Examples of RequestSecurityTokenResponse


Examples of org.jboss.identity.federation.core.wstrust.wrappers.RequestSecurityTokenResponse

         provider.validateToken(context);
         status = context.getStatus();
      }

      // construct and return the response.
      RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
      if (request.getContext() != null)
         response.setContext(request.getContext());
      response.setTokenType(request.getTokenType());
      response.setStatus(status);

      return response;
   }
View Full Code Here

Examples of org.opensaml.ws.wsfed.RequestSecurityTokenResponse

/** A thread-safe unmarshaller for {@link RequestSecurityTokenResponse} objects. */
public class RequestSecurityTokenResponseUnmarshaller extends AbstractXMLObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) {
        RequestSecurityTokenResponse response = (RequestSecurityTokenResponse) parentSAMLObject;

        if (childSAMLObject instanceof RequestedSecurityToken) {
            response.getRequestedSecurityToken().add((RequestedSecurityToken) childSAMLObject);
        } else if (childSAMLObject instanceof AppliesTo) {
            response.setAppliesTo((AppliesTo) childSAMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wsfed.RequestSecurityTokenResponse

/** A thread-safe unmarshaller for {@link RequestSecurityTokenResponse} objects. */
public class RequestSecurityTokenResponseUnmarshaller extends AbstractXMLObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) {
        RequestSecurityTokenResponse response = (RequestSecurityTokenResponse) parentSAMLObject;

        if (childSAMLObject instanceof RequestedSecurityToken) {
            response.getRequestedSecurityToken().add((RequestedSecurityToken) childSAMLObject);
        } else if (childSAMLObject instanceof AppliesTo) {
            response.setAppliesTo((AppliesTo) childSAMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

*/
public class RequestSecurityTokenResponseMarshaller extends AbstractWSTrustObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RequestSecurityTokenResponse rstr= (RequestSecurityTokenResponse) xmlObject;
        if (rstr.getContext() != null) {
            domElement.setAttributeNS(null, RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME, rstr.getContext());
        }
        XMLHelper.marshallAttributeMap(rstr.getUnknownAttributes(), domElement);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

*/
public class RequestSecurityTokenResponseUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) xmlObject;
        if (RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
            rstr.setContext(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(rstr.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) parentXMLObject;
        rstr.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

*/
public class RequestSecurityTokenResponseMarshaller extends AbstractWSTrustObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RequestSecurityTokenResponse rstr= (RequestSecurityTokenResponse) xmlObject;
        if (rstr.getContext() != null) {
            domElement.setAttributeNS(null, RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME, rstr.getContext());
        }
        XMLHelper.marshallAttributeMap(rstr.getUnknownAttributes(), domElement);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

*/
public class RequestSecurityTokenResponseUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) xmlObject;
        if (RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME.equals(attribute.getLocalName())) {
            rstr.setContext(attribute.getValue());
        } else {
            XMLHelper.unmarshallToAttributeMap(rstr.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.RequestSecurityTokenResponse

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        RequestSecurityTokenResponse rstr = (RequestSecurityTokenResponse) parentXMLObject;
        rstr.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.picketlink.identity.federation.core.wstrust.wrappers.RequestSecurityTokenResponse

        if (contextSecurityToken == null)
            throw new WSTrustException(logger.nullValueError("Security Token from context"));

        requestedSecurityToken.add(contextSecurityToken.getTokenValue());

        RequestSecurityTokenResponse response = new RequestSecurityTokenResponse();
        if (request.getContext() != null)
            response.setContext(request.getContext());

        response.setTokenType(request.getTokenType());
        response.setLifetime(request.getLifetime());
        response.setAppliesTo(appliesTo);
        response.setKeySize(keySize);
        response.setKeyType(keyType);
        response.setRequestedSecurityToken(requestedSecurityToken);

        if (requestedProofToken != null)
            response.setRequestedProofToken(requestedProofToken);
        if (serverEntropy != null)
            response.setEntropy(serverEntropy);

        // set the attached and unattached references.
        if (requestContext.getAttachedReference() != null)
            response.setRequestedAttachedReference(requestContext.getAttachedReference());
        if (requestContext.getUnattachedReference() != null)
            response.setRequestedUnattachedReference(requestContext.getUnattachedReference());

        return response;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.