Class SAML2ArtifactType0004Builder
java.lang.Object
org.opensaml.saml.saml2.binding.artifact.SAML2ArtifactType0004Builder
- All Implemented Interfaces:
SAML2ArtifactBuilder<SAML2ArtifactType0004>
public class SAML2ArtifactType0004Builder
extends Object
implements SAML2ArtifactBuilder<SAML2ArtifactType0004>
SAML 2, type 0x0004, artifact builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildArtifact(byte[] artifact) Builds a populated artifact given the artifact's byte-array representation.buildArtifact(MessageContext requestContext) Builds an artifact, for the given assertion, destined for the outbound message recipient.protected IntegergetArsEndpointIndex(MessageContext requestContext) Gets the index of the source artifact resolution service.protected SAMLArtifactContextgetArtifactContext(MessageContext requestContext) Get the artifact context.protected StringgetSourceEntityId(MessageContext requestContext) Get the local entityId.private byte[]intToByteArray(int integer) Converts an integer into an unsigned 4-byte array.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
SAML2ArtifactType0004Builder
public SAML2ArtifactType0004Builder()
-
-
Method Details
-
buildArtifact
Builds a populated artifact given the artifact's byte-array representation.- Specified by:
buildArtifactin interfaceSAML2ArtifactBuilder<SAML2ArtifactType0004>- Parameters:
artifact- the byte representation of the artifact- Returns:
- populated artifact
-
buildArtifact
Builds an artifact, for the given assertion, destined for the outbound message recipient.- Specified by:
buildArtifactin interfaceSAML2ArtifactBuilder<SAML2ArtifactType0004>- Parameters:
requestContext- request context- Returns:
- constructed artifcate
-
getArtifactContext
Get the artifact context.- Parameters:
requestContext- the current message context- Returns:
- the SAML artifact context, or null
-
getArsEndpointIndex
Gets the index of the source artifact resolution service.- Parameters:
requestContext- current request context- Returns:
- the index of the attribute resolution service
-
getSourceEntityId
Get the local entityId.- Parameters:
requestContext- the message context- Returns:
- the local entityId
-
intToByteArray
Converts an integer into an unsigned 4-byte array.- Parameters:
integer- integer to convert- Returns:
- 4-byte array representing integer
-