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

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

public class FSNameIdentifierMappingResponse
extends AbstractResponse

The class FSNameIdentifierMappingResponse is used to create , parse the NameIdentifierMappingResponse.


フィールドの概要
 
クラス com.sun.identity.saml.protocol.AbstractResponse から継承されたフィールド
inResponseTo, issueInstant, majorVersion, recipient, responseID, signature, signed, valid, validationDone
 
コンストラクタの概要
FSNameIdentifierMappingResponse(Element root)
          Constructor to create FSNameIdentifierMappingResponse object.
FSNameIdentifierMappingResponse(String providerID, String inResponseTo, Status status, NameIdentifier nameIdentifier)
          Constructor to create FSNameIdentifierMappingResponse object.
 
メソッドの概要
 NameIdentifier getNameIdentifier()
          Returns the NameIdentifier object.
 String getProviderID()
          Returns the value of ProviderID attribute.
 Status getStatus()
          Returns the Status.
static FSNameIdentifierMappingResponse parseXML(String xml)
          Creates FSNameIdentifierMappingResponse object.
 void signXML()
          Signs the XML document representing NameIdentifierMappingResponse using the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.
 void signXML(String certAlias)
          Signs the XML document representing NameIdentifierMappingResponse using the specified certificate.
 String toXMLString()
          Returns the string representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns a String representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)
          Returns a String representation of this object.
 
クラス com.sun.identity.saml.protocol.AbstractResponse から継承されたメソッド
getInResponseTo, getIssueInstant, getMajorVersion, getMinorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setMinorVersion, setRecipient, setResponseID, setSignature
 

コンストラクタの詳細

FSNameIdentifierMappingResponse

public FSNameIdentifierMappingResponse(String providerID,
                                       String inResponseTo,
                                       Status status,
                                       NameIdentifier nameIdentifier)
                                throws FSMsgException
Constructor to create FSNameIdentifierMappingResponse object.

パラメータ:
providerID - the value of ProviderID attribute.
inResponseTo - the value of InResponseTo attribute.
status - the Status object.
nameIdentifier - the resulting mapped identifier, NameIdentifier, for the desired identity federation.
例外:
FSMsgException - on an error.

FSNameIdentifierMappingResponse

public FSNameIdentifierMappingResponse(Element root)
                                throws FSMsgException
Constructor to create FSNameIdentifierMappingResponse object. This object is created from the Document Element.

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

parseXML

public static FSNameIdentifierMappingResponse parseXML(String xml)
                                                throws FSMsgException
Creates FSNameIdentifierMappingResponse object. This object is created by parsing the XML string.

パラメータ:
xml - the XML string to be parse.
戻り値:
the FSNameIdentifierMappingResponse object.
例外:
FSMsgException - if there is an error in parsing the XML string.

getProviderID

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

戻り値:
the value of ProviderID attribute.

getStatus

public Status getStatus()
Returns the Status.

戻り値:
the Status.

getNameIdentifier

public NameIdentifier getNameIdentifier()
Returns the NameIdentifier object. This is the resulting mapped name identifier for the desired identity federation.

戻り値:
NameIdentifier object, the resulting mapped name identifier for the desired identity federation

signXML

public void signXML()
             throws SAMLException
Signs the XML document representing NameIdentifierMappingResponse using the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.

定義:
クラス AbstractResponse 内の signXML
例外:
SAMLException - if there is an error signing the XML string.

signXML

public void signXML(String certAlias)
             throws SAMLException
Signs the XML document representing NameIdentifierMappingResponse using the specified certificate.

パラメータ:
certAlias - the alias/name of the certificate used for signing the XML document
例外:
SAMLException - if there is an error signing the XML string or if the message is already signed.

toXMLString

public String toXMLString()
                   throws FSMsgException
Returns the string representation of this object.

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

toXMLString

public String toXMLString(boolean includeNS,
                          boolean declareNS)
                   throws FSMsgException
Returns a String representation of this 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.
戻り値:
a string containing the valid XML for this element
例外:
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 this 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.