|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.common.binding.artifact.AbstractSAMLArtifact org.opensaml.saml1.binding.artifact.AbstractSAML1Artifact org.opensaml.saml1.binding.artifact.SAML1ArtifactType0001
public class SAML1ArtifactType0001
SAML 1.X Type 0x0001 Artifact. SAML 1, type 1, artifacts contains a 2 byte type code with a value of 1 followed by a 20 byte source ID followed by a 20 byte assertion handle.
Field Summary | |
---|---|
private byte[] |
assertionHandle
20 byte assertion handle. |
private byte[] |
sourceID
20 byte artifact source ID. |
static byte[] |
TYPE_CODE
Artifact type code (0x0001). |
Constructor Summary | |
---|---|
SAML1ArtifactType0001()
Constructor. |
|
SAML1ArtifactType0001(byte[] source,
byte[] handle)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opensaml.common.binding.artifact.AbstractSAMLArtifact |
---|
base64Encode, equals, getArtifactBytes, getTypeCode, hashCode, hexEncode, setTypeCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte[] TYPE_CODE
private byte[] sourceID
private byte[] assertionHandle
Constructor Detail |
---|
public SAML1ArtifactType0001()
public SAML1ArtifactType0001(byte[] source, byte[] handle)
source
- 20 byte source ID of the artifacthandle
- 20 byte assertion handle of the artifact
IllegalArgumentException
- thrown if the given source ID or message handle are not of the current length
(20 bytes)Method Detail |
---|
public static SAML1ArtifactType0001 parseArtifact(byte[] artifact)
artifact
- the byte array representing the artifact
IllegalArgumentException
- 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 artifact
IllegalArgumentException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |