Class SAML1ArtifactType0002Builder
- java.lang.Object
-
- org.opensaml.saml.saml1.binding.artifact.SAML1ArtifactType0002Builder
-
- All Implemented Interfaces:
SAML1ArtifactBuilder<SAML1ArtifactType0002>
public class SAML1ArtifactType0002Builder extends Object implements SAML1ArtifactBuilder<SAML1ArtifactType0002>
SAML 1, type 0x0002, artifact builder.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description SAML1ArtifactType0002Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAML1ArtifactType0002buildArtifact(byte[] artifact)Builds a populated artifact given the artifact's byte-array representation.SAML1ArtifactType0002buildArtifact(MessageContext requestContext, Assertion assertion)Builds an artifact, for the given assertion, destined for the outbound message recipient.protected StringgetArsEndpointUrl(MessageContext requestContext)Gets the index of the source artifact resolution service.protected SAMLArtifactContextgetArtifactContext(MessageContext requestContext)Get the artifact context.
-
-
-
Method Detail
-
buildArtifact
@Nullable public SAML1ArtifactType0002 buildArtifact(@Nonnull @NotEmpty byte[] artifact)
Builds a populated artifact given the artifact's byte-array representation.- Specified by:
buildArtifactin interfaceSAML1ArtifactBuilder<SAML1ArtifactType0002>- Parameters:
artifact- the byte representation of the artifact- Returns:
- populated artifact
-
buildArtifact
@Nullable public SAML1ArtifactType0002 buildArtifact(@Nonnull MessageContext requestContext, @Nonnull Assertion assertion)
Builds an artifact, for the given assertion, destined for the outbound message recipient.- Specified by:
buildArtifactin interfaceSAML1ArtifactBuilder<SAML1ArtifactType0002>- Parameters:
requestContext- request contextassertion- assertion to build artifact for- Returns:
- constructed artifact
-
getArtifactContext
@Nullable protected SAMLArtifactContext getArtifactContext(@Nonnull MessageContext requestContext)
Get the artifact context.- Parameters:
requestContext- the current message context- Returns:
- the SAML artifact context, or null
-
getArsEndpointUrl
@Nullable protected String getArsEndpointUrl(@Nonnull MessageContext requestContext)
Gets the index of the source artifact resolution service.- Parameters:
requestContext- current request context- Returns:
- the index of the attribute resolution service
-
-