com.sun.identity.federation.message
クラス FSNameRegistrationResponse

java.lang.Object
  上位を拡張 com.sun.identity.saml.protocol.AbstractResponse
      上位を拡張 com.sun.identity.federation.message.FSNameRegistrationResponse

public class FSNameRegistrationResponse
extends AbstractResponse

This class has methods to create NameRegistrationResponse object.


フィールドの概要
protected  String id
           
protected  int minorVersion
           
protected  String signatureString
           
protected  String xmlString
           
 
クラス com.sun.identity.saml.protocol.AbstractResponse から継承されたフィールド
inResponseTo, issueInstant, majorVersion, recipient, responseID, signature, signed, valid, validationDone
 
コンストラクタの概要
FSNameRegistrationResponse()
          Default Constructor.
FSNameRegistrationResponse(Element root)
          Constructor creates the FSNameRegistrationResponse object from Document Element.
FSNameRegistrationResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState)
          Constructor creates the FSNameRegistrationResponse object.
 
メソッドの概要
 String getID()
          Returns the value of id attribute.
 int getMinorVersion()
          Returns the MinorVersion.
 String getProviderId()
          Returns the value of ProviderID attribute.
 String getRelayState()
          Returns the value of RelayState attribute.
 String getSignatureString()
          Returns the signed NameRegistrationResponse string.
 String getSignedXMLString()
          Returns signed XML representation of this object.
 Status getStatus()
          Returns the Response Status.
static FSNameRegistrationResponse parseBASE64EncodedString(String encodedRes)
          Returns FSNameRegistrationResponse object.
static FSNameRegistrationResponse parseURLEncodedRequest(HttpServletRequest request)
          Returns FSNameRegistrationLogoutResponse object.
static FSNameRegistrationResponse parseXML(String xml)
          Returns the FSNameRegistrationResponse object.
 void setID(String id)
          Sets the value of id attribute.
 void setMinorVersion(int version)
          Sets the MinorVersion.
 void setProviderId(String providerId)
          Sets the value of providerID attribute.
 void setRelayState(String relayState)
          Set the value of RelayState attribute.
 boolean setSignature(Element elem)
          Sets the Signature.
 void setStatus(Status status)
          Sets the Response Status.
 void signXML()
          Unsupported operation.
 void signXML(String certAlias)
          Signs the Name Registration Response.
 String toBASE64EncodedString()
          Returns a Base64 Encoded String.
 String toURLEncodedQueryString()
          Returns an URL Encoded String.
 String toXMLString()
          Returns the string representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of the Logout Response.
 String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)
          Returns a String representation of the Logout Response.
 
クラス com.sun.identity.saml.protocol.AbstractResponse から継承されたメソッド
getInResponseTo, getIssueInstant, getMajorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setRecipient, setResponseID
 

フィールドの詳細

xmlString

protected String xmlString

signatureString

protected String signatureString

id

protected String id

minorVersion

protected int minorVersion
コンストラクタの詳細

FSNameRegistrationResponse

public FSNameRegistrationResponse()
Default Constructor.


FSNameRegistrationResponse

public FSNameRegistrationResponse(String responseID,
                                  String inResponseTo,
                                  Status status,
                                  String providerId,
                                  String relayState)
                           throws FSMsgException
Constructor creates the FSNameRegistrationResponse object.

パラメータ:
responseID - the value of ResponseID attribute.
inResponseTo - the value of InResponseTo attribute.
status - the Status object.
providerId - the value of ProviderID attribute.
relayState - the value of RelayState attribute.
例外:
FSMsgException - if there is an error creating this object.

FSNameRegistrationResponse

public FSNameRegistrationResponse(Element root)
                           throws FSMsgException,
                                  SAMLException
Constructor creates the FSNameRegistrationResponse object from Document Element.

パラメータ:
root - the Document Element objec.t
例外:
FSMsgException - if there is an error creating this object.
SAMLException - if there is an error creating this object.
メソッドの詳細

getRelayState

public String getRelayState()
Returns the value of RelayState attribute.

戻り値:
the value of RelayState attribute.
関連項目:
FSNameRegistrationResponse.setRelayState(String)

setRelayState

public void setRelayState(String relayState)
Set the value of RelayState attribute.

パラメータ:
relayState - the value of RelayState attribute.
関連項目:
FSNameRegistrationResponse.getRelayState()

getID

public String getID()
Returns the value of id attribute.

戻り値:
the value of id attribute.
関連項目:
FSNameRegistrationResponse.setID(String)

setID

public void setID(String id)
Sets the value of id attribute.

パラメータ:
id - the value of id attribute.
関連項目:
FSNameRegistrationResponse.getID()

getProviderId

public String getProviderId()
Returns the value of ProviderID attribute.

戻り値:
the value of ProviderID attribute.
関連項目:
FSNameRegistrationResponse.setProviderId(String).

setProviderId

public void setProviderId(String providerId)
Sets the value of providerID attribute.

パラメータ:
providerId - the value of providerID attribute.
関連項目:
FSNameRegistrationResponse.getProviderId()

getSignedXMLString

public String getSignedXMLString()
Returns signed XML representation of this object.

戻り値:
xmlString signed XML representation of this object.

getSignatureString

public String getSignatureString()
Returns the signed NameRegistrationResponse string.

戻り値:
signatureString the signed NameRegistrationResponse string.

getMinorVersion

public int getMinorVersion()
Returns the MinorVersion.

オーバーライド:
クラス AbstractResponse 内の getMinorVersion
戻り値:
the MinorVersion.
関連項目:
FSNameRegistrationResponse.setMinorVersion(int)

setMinorVersion

public void setMinorVersion(int version)
Sets the MinorVersion.

オーバーライド:
クラス AbstractResponse 内の setMinorVersion
パラメータ:
version - the MinorVersion.
関連項目:
FSNameRegistrationResponse.getMinorVersion()

getStatus

public Status getStatus()
Returns the Response Status.

戻り値:
the Response Status.
関連項目:
FSNameRegistrationResponse.setStatus(Status)

setStatus

public void setStatus(Status status)
Sets the Response Status.

パラメータ:
status - the Response Status関連項目:
FSNameRegistrationResponse.getStatus()

parseXML

public static FSNameRegistrationResponse parseXML(String xml)
                                           throws FSMsgException
Returns the FSNameRegistrationResponse object.

パラメータ:
xml - the XML string to be parsed.
戻り値:
FSNameRegistrationResponsee object created from the XML string.
例外:
FSMsgException - if there is error creating the object.

toXMLString

public String toXMLString()
                   throws FSMsgException
Returns the string representation of this object. This method translates the response to an XML string.

戻り値:
An XML String representing the Response.
例外:
FSMsgException - on error.

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS)
                   throws FSMsgException
Returns a String representation of the Logout Response.

パラメータ:
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
例外:
FSMsgException - if there is an error converting this object to a string.

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS,
                          boolean includeHeader)
                   throws FSMsgException
Returns a String representation of the Logout Response.

パラメータ:
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.
includeHeader - Determines whether the output include the xml declaration header.
戻り値:
a string containing the valid XML for this element
例外:
FSMsgException - if there is an error converting this object to a string.

parseBASE64EncodedString

public static FSNameRegistrationResponse parseBASE64EncodedString(String encodedRes)
                                                           throws FSMsgException,
                                                                  SAMLException
Returns FSNameRegistrationResponse object. The object is created by parsing an Base64 encode Name Registration Response string.

パラメータ:
encodedRes - the encoded response string
例外:
FSMsgException - if there is an error creating this object.
SAMLException - if there is an error creating this object.

toBASE64EncodedString

public String toBASE64EncodedString()
                             throws FSMsgException
Returns a Base64 Encoded String.

戻り値:
a Base64 Encoded String.
例外:
FSMsgException - if there is an error encoding the string.

signXML

public void signXML(String certAlias)
             throws SAMLException
Signs the Name Registration Response.

パラメータ:
certAlias - the Certificate Alias.
例外:
SAMLException - if this object cannot be signed.

signXML

public void signXML()
             throws SAMLException
Unsupported operation.

定義:
クラス AbstractResponse 内の signXML
例外:
SAMLException - if could not sign the object.

setSignature

public boolean setSignature(Element elem)
Sets the Signature.

オーバーライド:
クラス AbstractResponse 内の setSignature
パラメータ:
elem - the Document Element.
戻り値:
true if success otherwise false.

toURLEncodedQueryString

public String toURLEncodedQueryString()
                               throws FSMsgException
Returns an URL Encoded String.

戻り値:
a url encoded query string.
例外:
FSMsgException - if there is an error.

parseURLEncodedRequest

public static FSNameRegistrationResponse parseURLEncodedRequest(HttpServletRequest request)
                                                         throws FSMsgException,
                                                                SAMLException
Returns FSNameRegistrationLogoutResponse object. The object is creating by parsing the HttpServletRequest object.

パラメータ:
request - the HttpServletRequest object.
例外:
FSMsgException - if there is an error creating this object.
SAMLException