|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensaml.common.binding.artifact.AbstractSAMLArtifact
org.opensaml.saml2.binding.artifact.AbstractSAML2Artifact
org.opensaml.saml2.binding.artifact.SAML2ArtifactType0004
public class SAML2ArtifactType0004
SAML 2 Type 0x004 Artifact. SAML 2, type 4, artifacts contains a 2 byte type code with a value of 4 follwed by a 2 byte endpoint index followed by a 20 byte source ID followed by a 20 byte message handle.
Field Summary | |
---|---|
static byte[] |
TYPE_CODE
SAML 2 artifact type code (0x0004). |
Constructor Summary | |
---|---|
SAML2ArtifactType0004()
Constructor. |
|
SAML2ArtifactType0004(byte[] endpointIndex,
byte[] source,
byte[] handle)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opensaml.saml2.binding.artifact.AbstractSAML2Artifact |
---|
getArtifactBytes, getEndpointIndex, setEndpointIndex |
Methods inherited from class org.opensaml.common.binding.artifact.AbstractSAMLArtifact |
---|
base64Encode, equals, 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
Constructor Detail |
---|
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 artifact
IllegalArgumentException
- thrown if the endpoint index, source ID, or message handle arrays are not of the
right sizeMethod Detail |
---|
public static SAML2ArtifactType0004 parseArtifact(byte[] artifact)
artifact
- the byte array representing the artifact
IllegalArgumentException
- 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 artifact
IllegalArgumentException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |