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

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

public class FSLogoutResponse
extends AbstractResponse

This class has methods to create a Liberty LogoutResponse.


フィールドの概要
protected  String id
           
protected  String signatureString
           
protected  String xmlString
           
 
クラス com.sun.identity.saml.protocol.AbstractResponse から継承されたフィールド
issueInstant, majorVersion, minorVersion, recipient, responseID, signature, signed, valid, validationDone
 
コンストラクタの概要
FSLogoutResponse()
          Default Constructor.
FSLogoutResponse(Element root)
          Constructor creates FSLogoutResponse object from a Document element.
FSLogoutResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState)
          Constructor creates FSLogoutResponse object.
 
メソッドの概要
 String getID()
          Returns the value of id attribute.
 int getMinorVersion()
          Returns the value of MinorVersion attribute.
 String getProviderId()
          Returns the value of ProviderID attribute.
 String getRelayState()
          Returns the value of RelayState attribute.
 String getResponseTo()
          Returns the value of InResponseTo attribute.
 String getSignatureString()
          Returns the Signed LogoutResponse string.
 Status getStatus()
          Returns the Logout Status.
static FSLogoutResponse parseBASE64EncodedString(String encodedRes)
          Returns FSLogoutResponse object.
static FSLogoutResponse parseURLEncodedRequest(HttpServletRequest request)
          Returns FSLogoutResponse object.
static FSLogoutResponse parseXML(String xml)
          Returns the FSLogoutResponse object.
 void setID(String id)
          Sets the value of id attribute.
 void setMinorVersion(int version)
          Sets the value of MinorVersion attribute.
 void setProviderId(String providerId)
          Sets the value of ProviderID attribute.
 void setRelayState(String relayState)
          Set the value of RelayState attribute.
 void setResponseTo(String inResponseTo)
          Sets the value of InResponseTo attribute.
 boolean setSignature(Element elem)
          Sets the Signature.
 void setStatus(Status status)
          Sets the Logout Status.
 void setStatus(String status)
          Sets the Logout Status.
 void signXML()
          Unsupported operation.
 void signXML(String certAlias)
          Signs the LogoutResponse.
 String toBASE64EncodedString()
          Returns a Base64 Encoded String.
 String toURLEncodedQueryString()
          Returns an URL Encoded String.
 String toXMLString()
          Returns a String representation of the LogoutResponse object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of the LogoutResponse object.
 String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)
          Returns a String representation of the LogoutResponse object.
 
クラス 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
コンストラクタの詳細

FSLogoutResponse

public FSLogoutResponse()
Default Constructor.


FSLogoutResponse

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

パラメータ:
responseID - the value of ResponseID attribute.
inResponseTo - the value of inResponseTo attribute.
status - the Logout Status object.
providerId - the value of ProviderID attribute.
relayState - the value of RelayState attribute.
例外:
FSMsgException - if this object cannot be created.
FSMsgException

FSLogoutResponse

public FSLogoutResponse(Element root)
                 throws FSMsgException,
                        SAMLException
Constructor creates FSLogoutResponse object from a Document element.

パラメータ:
root - the Document element object.
例外:
FSMsgException - if this object cannot be created.
SAMLException - if there is an error.
メソッドの詳細

getRelayState

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

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

setRelayState

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

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

getResponseTo

public String getResponseTo()
Returns the value of InResponseTo attribute.

戻り値:
the value of InResponseTo attribute.
関連項目:
FSLogoutResponse.setResponseTo(String)

setResponseTo

public void setResponseTo(String inResponseTo)
Sets the value of InResponseTo attribute.

パラメータ:
inResponseTo - the value of InResponseTo attribute.
関連項目:
FSLogoutResponse.getResponseTo()

getID

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

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

setID

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

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

getProviderId

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

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

setProviderId

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

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

getSignatureString

public String getSignatureString()
Returns the Signed LogoutResponse string.

戻り値:
signatureString the Signed LogoutResponse string.

getMinorVersion

public int getMinorVersion()
Returns the value of MinorVersion attribute.

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

setMinorVersion

public void setMinorVersion(int version)
Sets the value of MinorVersion attribute.

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

getStatus

public Status getStatus()
Returns the Logout Status.

戻り値:
the Logout Status.
関連項目:
FSLogoutResponse.setStatus(String), FSLogoutResponse.setStatus(Status)

setStatus

public void setStatus(String status)
Sets the Logout Status.

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

setStatus

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

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

parseXML

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

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

toXMLString

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

戻り値:
An XML String representing the logout response.
例外:
FSMsgException

toXMLString

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

戻り値:
An XML String representing the logout response.
例外:
FSMsgException - if there is an error converting this object ot a string.

toXMLString

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

パラメータ:
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 ot a string.

parseBASE64EncodedString

public static FSLogoutResponse parseBASE64EncodedString(String encodedRes)
                                                 throws FSMsgException,
                                                        SAMLException
Returns FSLogoutResponse object. The object is created by parsing an Base64 encode authentication request String.

パラメータ:
encodedRes - the encode 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()
Unsupported operation.

定義:
クラス AbstractResponse 内の signXML

signXML

public void signXML(String certAlias)
             throws SAMLException
Signs the LogoutResponse.

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

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 FSLogoutResponse parseURLEncodedRequest(HttpServletRequest request)
                                               throws FSMsgException,
                                                      SAMLException
Returns FSLogoutResponse object. The object is creating by parsing the HttpServletRequest object.

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