public class SAML1ArtifactType0002 extends AbstractSAML1Artifact implements SAMLSourceLocationArtifact
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
assertionHandle
20 byte assertion handle.
|
private String |
sourceLocation
Artifact source location component.
|
static byte[] |
TYPE_CODE
Artifact type code (0x0002).
|
| Constructor and Description |
|---|
SAML1ArtifactType0002()
Constructor.
|
SAML1ArtifactType0002(byte[] handle,
String location)
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.
|
String |
getSourceLocation()
Gets the source location component of this artifact.
|
static SAML1ArtifactType0002 |
parseArtifact(byte[] artifact)
Constructs a SAML 1 artifact from its byte representation.
|
void |
setAssertionHandle(byte[] handle)
Sets the artifiact's 20 byte assertion handle.
|
protected void |
setSourceLocation(String newLocation)
Sets source location component of this artifact.
|
base64Encode, equals, getArtifactBytes, getTypeCode, hashCode, hexEncode, setTypeCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetArtifactBytes, getTypeCodepublic static final byte[] TYPE_CODE
private byte[] assertionHandle
private String sourceLocation
public SAML1ArtifactType0002()
public SAML1ArtifactType0002(byte[] handle,
String location)
handle - 20 byte assertion handle artifact componentlocation - source location artifact componentIllegalArgumentException - thrown if the given assertion handle is not 20 bytes or the source location is
null or emptypublic static SAML1ArtifactType0002 parseArtifact(byte[] artifact)
artifact - the byte array representing the artifactIllegalArgumentException - thrown if the artifact type is not 0x0002public byte[] getAssertionHandle()
public void setAssertionHandle(byte[] handle)
handle - artifiact's 20 byte assertion handlepublic String getSourceLocation()
getSourceLocation in interface SAMLSourceLocationArtifactprotected void setSourceLocation(String newLocation)
newLocation - source location component of this artifactIllegalArgumentException - thrown if the given location is empty or nullpublic byte[] getRemainingArtifact()
getRemainingArtifact in class AbstractSAMLArtifactCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.