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 Modifier and Type Field Description private org.slf4j.Logger
log
Class logger.
-
Constructor Summary
Constructors Constructor Description SAML2ArtifactType0004Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SAML2ArtifactType0004
buildArtifact(byte[] artifact)
Builds a populated artifact given the artifact's byte-array representation.SAML2ArtifactType0004
buildArtifact(org.opensaml.messaging.context.MessageContext requestContext)
Builds an artifact, for the given assertion, destined for the outbound message recipient.protected Integer
getArsEndpointIndex(org.opensaml.messaging.context.MessageContext requestContext)
Gets the index of the source artifact resolution service.protected SAMLArtifactContext
getArtifactContext(org.opensaml.messaging.context.MessageContext requestContext)
Get the artifact context.protected String
getSourceEntityId(org.opensaml.messaging.context.MessageContext requestContext)
Get the local entityId.private byte[]
intToByteArray(int integer)
Converts an integer into an unsigned 4-byte array.
-
-
-
Method Detail
-
buildArtifact
@Nullable public SAML2ArtifactType0004 buildArtifact(@Nonnull @NotEmpty byte[] artifact)
Builds a populated artifact given the artifact's byte-array representation.- Specified by:
buildArtifact
in interfaceSAML2ArtifactBuilder<SAML2ArtifactType0004>
- Parameters:
artifact
- the byte representation of the artifact- Returns:
- populated artifact
-
buildArtifact
@Nullable public SAML2ArtifactType0004 buildArtifact(@Nonnull org.opensaml.messaging.context.MessageContext requestContext)
Builds an artifact, for the given assertion, destined for the outbound message recipient.- Specified by:
buildArtifact
in interfaceSAML2ArtifactBuilder<SAML2ArtifactType0004>
- Parameters:
requestContext
- request context- Returns:
- constructed artifcate
-
getArtifactContext
@Nullable protected SAMLArtifactContext getArtifactContext(@Nonnull org.opensaml.messaging.context.MessageContext requestContext)
Get the artifact context.- Parameters:
requestContext
- the current message context- Returns:
- the SAML artifact context, or null
-
getArsEndpointIndex
@Nullable protected Integer getArsEndpointIndex(@Nonnull org.opensaml.messaging.context.MessageContext requestContext)
Gets the index of the source artifact resolution service.- Parameters:
requestContext
- current request context- Returns:
- the index of the attribute resolution service
-
getSourceEntityId
@Nullable protected String getSourceEntityId(@Nonnull org.opensaml.messaging.context.MessageContext requestContext)
Get the local entityId.- Parameters:
requestContext
- the message context- Returns:
- the local entityId
-
intToByteArray
@Nonnull @NotEmpty private byte[] intToByteArray(int integer)
Converts an integer into an unsigned 4-byte array.- Parameters:
integer
- integer to convert- Returns:
- 4-byte array representing integer
-
-