com.sun.identity.saml.protocol
クラス AssertionArtifact

java.lang.Object
  上位を拡張 com.sun.identity.saml.protocol.AssertionArtifact
直系の既知のサブクラス:
FSAssertionArtifact

public class AssertionArtifact
extends Object

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


フィールドの概要
protected  String artifact
          This value specifies the assertion artifact as a string.
protected  String assertionHandle
           
protected  String sourceID
           
protected  byte[] typeCode
           
 
コンストラクタの概要
protected AssertionArtifact()
          This is the default constructor of assertion artifact.
  AssertionArtifact(String theArtifact)
          This constructor is used to construct an assertion artifact.
  AssertionArtifact(String id, String handle)
          This constructor will be used at the sender side to create a new AssertionArtifact.
 
メソッドの概要
 String getAssertionArtifact()
          Gets the artifact.
 String getAssertionHandle()
          Gets the AssertionHandle of the artifact.
 String getSourceID()
          Returns the SourceID of the artifact.
 byte[] getTypeCode()
          Gets the typeCode of the artifact.
 String toString()
          Translates the AssertionArtifact to an XML document String based on the SAML schema.
 String toString(boolean includeNS, boolean declareNS)
          Creates a String representation of the <samlp:AssertionArtifact> element.
 

フィールドの詳細

artifact

protected String artifact
This value specifies the assertion artifact as a string.


assertionHandle

protected String assertionHandle

sourceID

protected String sourceID

typeCode

protected byte[] typeCode
コンストラクタの詳細

AssertionArtifact

protected AssertionArtifact()
This is the default constructor of assertion artifact.


AssertionArtifact

public AssertionArtifact(String theArtifact)
                  throws SAMLException
This constructor is used to construct an assertion artifact.

パラメータ:
theArtifact - is the string that is generated by a provider.
例外:
SAMLException - if an error occurs.

AssertionArtifact

public AssertionArtifact(String id,
                         String handle)
                  throws SAMLException
This constructor will be used at the sender side to create a new AssertionArtifact.

パラメータ:
id - A string that represents the sourceID.
handle - A string that represents the assertionHandle.
例外:
SAMLException - if wrong input or could not encode the artifact.
メソッドの詳細

getAssertionArtifact

public String getAssertionArtifact()
Gets the artifact.

戻り値:
the string format of the artifact. It's base64 encoded.

getSourceID

public String getSourceID()
Returns the SourceID of the artifact.

戻り値:
The SourceID of the artifact.

getAssertionHandle

public String getAssertionHandle()
Gets the AssertionHandle of the artifact. The result will be decoded.

戻り値:
The AssertionHandle of the artifact.

getTypeCode

public byte[] getTypeCode()
Gets the typeCode of the artifact.

戻り値:
The byte array of the TypeCode for the artifact.

toString

public String toString()
Translates the AssertionArtifact to an XML document String based on the SAML schema.

オーバーライド:
クラス Object 内の toString
戻り値:
An XML String representing the AssertionArtifact.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Creates a String representation of the <samlp:AssertionArtifact> element.

パラメータ:
includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
戻り値:
A string containing the valid XML for this element