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

java.lang.Object
  上位を拡張 com.sun.identity.saml.protocol.AbstractRequest
直系の既知のサブクラス:
FSAuthnRequest, FSFederationTerminationNotification, FSLogoutNotification, FSNameIdentifierMappingRequest, FSNameRegistrationRequest, Request

public abstract class AbstractRequest
extends Object

This AbstractRequest class is an abstract base class for all SAML Request in samlp namespace. It corresponds to RequestAbstractType in SAML protocol schema.


フィールドの概要
protected  Date issueInstant
           
protected  int majorVersion
           
protected  int minorVersion
           
protected  String requestID
           
protected  List respondWiths
           
protected  Element signature
           
protected  boolean signed
           
protected  boolean valid
           
 
コンストラクタの概要
protected AbstractRequest()
           
 
メソッドの概要
 boolean addRespondWith(String respondWith)
          Adds a RespondWith to the Request.
 Date getIssueInstant()
          Returns the IssueInstant of the Request.
 int getMajorVersion()
          Returns the MajorVersion of the Request.
 int getMinorVersion()
          Returns the MinorVersion of the Request.
 String getRequestID()
          Gets the RequestID of the Request.
 List getRespondWith()
          Gets 0 or more of RespondWith in the Request.
 Element getSignature()
          Gets 0 or 1 of Signature in the Request.
 boolean isSignatureValid()
          Return whether the signature on the object is valid or not.
 boolean isSigned()
          Return whether the object is signed or not.
 boolean setIssueInstant(Date issueInstant)
          Set the IssueInstant of the Request.
 void setMajorVersion(int majorVersion)
          Sets the MajorVersion of the Request.
 void setMinorVersion(int minorVersion)
          Sets the MinorVersion of the Request.
 boolean setRequestID(String requestID)
          Set the RequestID of the Request.
 boolean setSignature(Element elem)
          Set the signature for the Request
abstract  void signXML()
          An abstract method to sign the object.
 

フィールドの詳細

respondWiths

protected List respondWiths

signature

protected Element signature

requestID

protected String requestID

majorVersion

protected int majorVersion

minorVersion

protected int minorVersion

issueInstant

protected Date issueInstant

signed

protected boolean signed

valid

protected boolean valid
コンストラクタの詳細

AbstractRequest

protected AbstractRequest()
メソッドの詳細

isSigned

public boolean isSigned()
Return whether the object is signed or not.

戻り値:
true if the object is signed; false otherwise.

isSignatureValid

public boolean isSignatureValid()
Return whether the signature on the object is valid or not.

戻り値:
true if the signature is valid; false otherwise.

signXML

public abstract void signXML()
                      throws SAMLException
An abstract method to sign the object.

例外:
SAMLException - If could not sign the object.

getRespondWith

public List getRespondWith()
Gets 0 or more of RespondWith in the Request.

戻り値:
A List of Strings.

addRespondWith

public boolean addRespondWith(String respondWith)
Adds a RespondWith to the Request.

パラメータ:
respondWith - A String that needs to be added to the Request.
戻り値:
true if the operation is successful.

getSignature

public Element getSignature()
Gets 0 or 1 of Signature in the Request.

戻り値:
The signature Element the Request contains. It returns null if the Request has no signature.

setSignature

public boolean setSignature(Element elem)
Set the signature for the Request

パラメータ:
elem - ds:Signature element
戻り値:
true if the operation succeeds.

getRequestID

public String getRequestID()
Gets the RequestID of the Request.

戻り値:
the RequestID of the Request.

setRequestID

public boolean setRequestID(String requestID)
Set the RequestID of the Request.

パラメータ:
requestID - A String that is the RequestID attribute of the Request.
戻り値:
true if the operation is successful.

getMajorVersion

public int getMajorVersion()
Returns the MajorVersion of the Request.

戻り値:
The MajorVersion of the Request.

getMinorVersion

public int getMinorVersion()
Returns the MinorVersion of the Request.

戻り値:
The MinorVersion of the request.

setMajorVersion

public void setMajorVersion(int majorVersion)
Sets the MajorVersion of the Request.

パラメータ:
majorVersion - the intended major version for SAML Request

setMinorVersion

public void setMinorVersion(int minorVersion)
Sets the MinorVersion of the Request.

パラメータ:
minorVersion - the intended minor version for SAML Request

getIssueInstant

public Date getIssueInstant()
Returns the IssueInstant of the Request.

戻り値:
the IssueInstant of the Request.

setIssueInstant

public boolean setIssueInstant(Date issueInstant)
Set the IssueInstant of the Request.

パラメータ:
issueInstant - a Date object representing the time when the Request is issued.
戻り値:
true if the operation succeeds.