public class SAML1ArtifactType0001 extends AbstractSAML1Artifact
Modifier and Type | Field and Description |
---|---|
static byte[] |
TYPE_CODE
Artifact type code (0x0001).
|
Constructor and Description |
---|
SAML1ArtifactType0001()
Constructor.
|
SAML1ArtifactType0001(byte[] source,
byte[] handle)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getAssertionHandle()
Gets the artifiact's 20 byte assertion handle.
|
byte[] |
getRemainingArtifact()
Gets the artifact bytes minus the type code.
|
byte[] |
getSourceID()
Gets the 20 byte source ID of the artifact.
|
static SAML1ArtifactType0001 |
parseArtifact(byte[] artifact)
Constructs a SAML 1 artifact from its byte array representation.
|
void |
setAssertionHandle(byte[] handle)
Sets the artifiact's 20 byte assertion handle.
|
protected void |
setSourceID(byte[] newSourceID)
Sets the 20 byte source ID of the artifact.
|
base64Encode, equals, getArtifactBytes, getTypeCode, hashCode, hexEncode, setTypeCode, toString
public SAML1ArtifactType0001()
public SAML1ArtifactType0001(byte[] source, byte[] handle)
source
- 20 byte source ID of the artifacthandle
- 20 byte assertion handle of the artifactIllegalArgumentException
- thrown if the given source ID or message handle are not of the current length
(20 bytes)public static SAML1ArtifactType0001 parseArtifact(byte[] artifact)
artifact
- the byte array representing the artifactIllegalArgumentException
- thrown if the artifact is not the right type or lenght (42 bytes) or is not of
the correct type (0x0001)public byte[] getSourceID()
protected void setSourceID(byte[] newSourceID)
newSourceID
- 20 byte source ID of the artifactIllegalArgumentException
- thrown if the given source ID is not 20 bytespublic byte[] getAssertionHandle()
public void setAssertionHandle(byte[] handle)
handle
- artifiact's 20 byte assertion handlepublic byte[] getRemainingArtifact()
getRemainingArtifact
in class AbstractSAMLArtifact
Copyright © 2018 JBoss by Red Hat. All rights reserved.