Class AbstractSAML2Artifact
java.lang.Object
org.opensaml.saml.common.binding.artifact.AbstractSAMLArtifact
org.opensaml.saml.saml2.binding.artifact.AbstractSAML2Artifact
- All Implemented Interfaces:
SAMLArtifact,SAML2Artifact
- Direct Known Subclasses:
SAML2ArtifactType0004
SAML 2 Artifact base class. SAML 2 artifacts contains a 2 byte type code followed by a 2 byte endpoint index followed
by remaining artifact data.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSAML2Artifact(byte[] artifactType) Constructor.AbstractSAML2Artifact(byte[] artifactType, byte[] index) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the bytes for the artifact.byte[]Gets the 2 byte endpoint index for this artifact.voidsetEndpointIndex(byte[] newIndex) Sets the 2 byte endpoint index for this artifact.Methods inherited from class org.opensaml.saml.common.binding.artifact.AbstractSAMLArtifact
base64Encode, equals, getRemainingArtifact, getTypeCode, hashCode, hexEncode, setTypeCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensaml.saml.common.binding.artifact.SAMLArtifact
getTypeCode
-
Field Details
-
endpointIndex
@Nonnull private byte[] endpointIndex2 byte artifact endpoint index.
-
-
Constructor Details
-
AbstractSAML2Artifact
protected AbstractSAML2Artifact(@Nonnull byte[] artifactType) Constructor.- Parameters:
artifactType- artifact type code
-
AbstractSAML2Artifact
public AbstractSAML2Artifact(@Nonnull byte[] artifactType, @Nonnull byte[] index) Constructor.- Parameters:
artifactType- artifact type codeindex- 2 byte endpoint index of the artifact- Throws:
IllegalArgumentException- thrown if the endpoint index, source ID, or message handle arrays are not of the right size
-
-
Method Details
-
getArtifactBytes
@Nonnull public byte[] getArtifactBytes()Gets the bytes for the artifact.- Specified by:
getArtifactBytesin interfaceSAMLArtifact- Overrides:
getArtifactBytesin classAbstractSAMLArtifact- Returns:
- the bytes for the artifact
-
getEndpointIndex
@Nonnull public byte[] getEndpointIndex()Gets the 2 byte endpoint index for this artifact.- Specified by:
getEndpointIndexin interfaceSAML2Artifact- Returns:
- 2 byte endpoint index for this artifact
-
setEndpointIndex
public void setEndpointIndex(byte[] newIndex) Sets the 2 byte endpoint index for this artifact.- Parameters:
newIndex- 2 byte endpoint index for this artifact- Throws:
IllegalArgumentException- thrown if the given index is not 2 bytes
-