com.sun.identity.federation.message
Class FSAssertionArtifact

java.lang.Object
  extended by com.sun.identity.saml.protocol.AssertionArtifact
      extended by com.sun.identity.federation.message.FSAssertionArtifact

public class FSAssertionArtifact
extends AssertionArtifact

This class represents the AssertionArtifact element in the SAML protocol schema. Current implementation supports TYPE 1 artifact only. Other type of artifact can be supported by extending this class.


Field Summary
static int ARTIFACT_1_LENGTH
          Default Artifact length
static byte[] ARTIFACT_1_TYPE_CODE
          Default Artifact Type Code Byte Array
static byte ARTIFACT_1_TYPE_CODE_0
          Default Artifact Type Code 0 Constant
static byte ARTIFACT_1_TYPE_CODE_1
          Default Artifact Type Code 1 Constant
 
Fields inherited from class com.sun.identity.saml.protocol.AssertionArtifact
artifact, assertionHandle, sourceID, typeCode
 
Constructor Summary
protected FSAssertionArtifact()
          Default Constructor.
  FSAssertionArtifact(byte[] idBytes, byte[] handleBytes)
          Constructor to create FSAssertionArtifact object.
  FSAssertionArtifact(String theArtifact)
          Constructor to create AssertionArtifact object.
 
Method Summary
 
Methods inherited from class com.sun.identity.saml.protocol.AssertionArtifact
getAssertionArtifact, getAssertionHandle, getSourceID, getTypeCode, toString, toString
 

Field Detail

ARTIFACT_1_LENGTH

public static final int ARTIFACT_1_LENGTH
Default Artifact length

See Also:
Constant Field Values

ARTIFACT_1_TYPE_CODE_0

public static final byte ARTIFACT_1_TYPE_CODE_0
Default Artifact Type Code 0 Constant

See Also:
Constant Field Values

ARTIFACT_1_TYPE_CODE_1

public static final byte ARTIFACT_1_TYPE_CODE_1
Default Artifact Type Code 1 Constant

See Also:
Constant Field Values

ARTIFACT_1_TYPE_CODE

public static final byte[] ARTIFACT_1_TYPE_CODE
Default Artifact Type Code Byte Array

Constructor Detail

FSAssertionArtifact

protected FSAssertionArtifact()
Default Constructor.


FSAssertionArtifact

public FSAssertionArtifact(String theArtifact)
                    throws FSMsgException
Constructor to create AssertionArtifact object.

Parameters:
theArtifact - is the string that is generated by a provider.
Throws:
SAMLException - if there is an error decoding the artifact string , the length of the artifact string is incorrect , the TYPE CODE in the artifact or other errors which prevent creation of this object.
FSMsgException

FSAssertionArtifact

public FSAssertionArtifact(byte[] idBytes,
                           byte[] handleBytes)
                    throws FSMsgException
Constructor to create FSAssertionArtifact object.

Parameters:
idBytes - the source identifier in the Assertion
handleBytes - the assertion identifier
Throws:
SAMLException - if wrong input or couldn't encode the artifact.
FSMsgException