Examples of SAML2ArtifactType0004


Examples of org.opensaml.saml2.binding.artifact.SAML2ArtifactType0004

    public SAMLObject resolveArtifact(SAMLMessageContext context, String artifactId, String endpointURI) throws MessageDecodingException {

        try {

            // Decode artifact.
            SAML2ArtifactType0004 decodedArtifact = new SAML2ArtifactType0004Builder().buildArtifact(Base64.decode(artifactId));

            // Endpoint index.
            int endpointIndex = parseEndpointIndex(decodedArtifact.getEndpointIndex());

            // Locate sender using the artifact sourceID
            EntityDescriptor idpEntityDescriptor = metadata.getEntityDescriptor(decodedArtifact.getSourceID());

            if (idpEntityDescriptor == null) {
                throw new MetadataProviderException("Cannot localize sender entity by SHA-1 hash from the artifact");
            }
View Full Code Here

Examples of org.opensaml.saml2.binding.artifact.SAML2ArtifactType0004

     * We ignore prefixes for SAML compliance.
     */
    @Override
    public String getNewTicketId(final String prefix) {
        if (saml2compliant) {
            return new SAML2ArtifactType0004(ENDPOINT_ID, newAssertionHandle(), sourceIdDigest).base64Encode();
        } else {
            return new SAML1ArtifactType0001(this.sourceIdDigest, newAssertionHandle()).base64Encode();
        }
    }
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.