public class SAML1ArtifactType0002 extends AbstractSAML1Artifact
Modifier and Type | Field and Description |
---|---|
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, toString
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()
protected 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 AbstractSAMLArtifact
Copyright © 2018 JBoss by Red Hat. All rights reserved.