public class SAML2ArtifactType0004 extends AbstractSAML2Artifact
Modifier and Type | Field and Description |
---|---|
static byte[] |
TYPE_CODE
SAML 2 artifact type code (0x0004).
|
Constructor and Description |
---|
SAML2ArtifactType0004()
Constructor.
|
SAML2ArtifactType0004(byte[] endpointIndex,
byte[] source,
byte[] handle)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getMessageHandle()
Gets the 20 byte message handle of the artifact.
|
byte[] |
getRemainingArtifact()
Gets the artifact bytes minus the type code.
|
byte[] |
getSourceID()
Gets the 20 byte source ID of the artifact.
|
static SAML2ArtifactType0004 |
parseArtifact(byte[] artifact)
Constructs a SAML 2 artifact from its byte array representation.
|
void |
setMessageHandle(byte[] handle)
Sets the 20 byte message handle of the artifact.
|
void |
setSourceID(byte[] newSourceID)
Sets the 20 byte source ID of the artifact.
|
getArtifactBytes, getEndpointIndex, setEndpointIndex
base64Encode, equals, getTypeCode, hashCode, hexEncode, setTypeCode, toString
public SAML2ArtifactType0004()
public SAML2ArtifactType0004(byte[] endpointIndex, byte[] source, byte[] handle)
endpointIndex
- 2 byte endpoint index of the artifactsource
- 20 byte source ID of the artifacthandle
- 20 byte message handle of the artifactIllegalArgumentException
- thrown if the endpoint index, source ID, or message handle arrays are not of the
right sizepublic static SAML2ArtifactType0004 parseArtifact(byte[] artifact)
artifact
- the byte array representing the artifactIllegalArgumentException
- thrown if the artifact is not the right type or lenght (44 bytes)public byte[] getSourceID()
public void setSourceID(byte[] newSourceID)
newSourceID
- 20 byte source ID of the artifactIllegalArgumentException
- thrown if the given source ID is not 20 bytespublic byte[] getMessageHandle()
public void setMessageHandle(byte[] handle)
handle
- 20 byte message handle of the artifactpublic byte[] getRemainingArtifact()
getRemainingArtifact
in class AbstractSAMLArtifact
Copyright © 2018 JBoss by Red Hat. All rights reserved.