Examples of ArtifactResponse


Examples of org.opensaml.saml2.core.ArtifactResponse

public class ArtifactResponseUnmarshaller extends StatusResponseTypeUnmarshaller {

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
            throws UnmarshallingException {
        ArtifactResponse artifactResponse = (ArtifactResponse) parentSAMLObject;

        if (childSAMLObject instanceof Issuer) {
            artifactResponse.setIssuer((Issuer) childSAMLObject);
        } else if (childSAMLObject instanceof Signature) {
            artifactResponse.setSignature((Signature) childSAMLObject);
        } else if (childSAMLObject instanceof Extensions) {
            artifactResponse.setExtensions((Extensions) childSAMLObject);
        } else if (childSAMLObject instanceof Status) {
            artifactResponse.setStatus((Status) childSAMLObject);
        } else {
            artifactResponse.setMessage((SAMLObject) childSAMLObject);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.core.ArtifactResponse

            context.setPeerEntityRoleMetadata(idpssoDescriptor);
            context.setPeerExtendedMetadata(extendedMetadata);

            getArtifactResponse(endpointURI, context);

            ArtifactResponse artifactResponse = (ArtifactResponse) context.getInboundSAMLMessage();

            if (artifactResponse == null) {
                throw new MessageDecodingException("Did not receive an artifact response message.");
            }

            DateTime issueInstant = artifactResponse.getIssueInstant();
            if (!isDateTimeSkewValid(getResponseSkew(), issueInstant)) {
                throw new MessageDecodingException("ArtifactResponse issue time is either too old or with date in the future, skew " + getResponseSkew() + ", time " + issueInstant);
            }

            SAMLObject message = artifactResponse.getMessage();
            if (message == null) {
                throw new MessageDecodingException("No inbound message in artifact response message.");
            }

            return message;
View Full Code Here

Examples of org.opensaml.saml2.core.ArtifactResponse

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
            throws UnmarshallingException {
        ArtifactResponse artifactResponse = (ArtifactResponse) parentSAMLObject;

        if (childSAMLObject instanceof Issuer) {
            artifactResponse.setIssuer((Issuer) childSAMLObject);
        } else if (childSAMLObject instanceof Signature) {
            artifactResponse.setSignature((Signature) childSAMLObject);
        } else if (childSAMLObject instanceof Extensions) {
            artifactResponse.setExtensions((Extensions) childSAMLObject);
        } else if (childSAMLObject instanceof Status) {
            artifactResponse.setStatus((Status) childSAMLObject);
        } else {
            artifactResponse.setMessage((SAMLObject) childSAMLObject);
        }
    }
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.