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

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

public class FSNameIdentifierMappingRequest
extends AbstractRequest

The class FSNameIdentifierMappingRequest is used to create or parse NameIdentifierMappingRequest.


フィールドの概要
 
クラス com.sun.identity.saml.protocol.AbstractRequest から継承されたフィールド
issueInstant, majorVersion, requestID, respondWiths, signature, signed, valid
 
コンストラクタの概要
FSNameIdentifierMappingRequest(Element root)
          Constructor to create FSNameIdentifierMappingRequest from the Document Element.
FSNameIdentifierMappingRequest(String providerID, NameIdentifier nameIdentifier, String targetNamespace)
          Constructor to create FSNameIdentifierMappingRequest.
 
メソッドの概要
 NameIdentifier getNameIdentifier()
          Returns the NameIdentifier object qualified by the requesting service provider .
 String getProviderID()
          Returns the ProviderID attribute.
 String getTargetNamespace()
          Returns the value of TargetNamespace attribute.
static FSNameIdentifierMappingRequest parseXML(String xml)
          Returns FSNameIdentifierMappingRequest object.
 void signXML()
          Signs the XML document representing NameIdentifierMappingRequest 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 NameIdentifierMappingRequest using the specified certificate.
 String toXMLString()
          Returns the string representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS)
          Returns the string representation of this object.
 String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)
          Returns a String representation of the <samlp:Response> element.
 
クラス com.sun.identity.saml.protocol.AbstractRequest から継承されたメソッド
addRespondWith, getIssueInstant, getMajorVersion, getMinorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setMinorVersion, setRequestID, setSignature
 

コンストラクタの詳細

FSNameIdentifierMappingRequest

public FSNameIdentifierMappingRequest(String providerID,
                                      NameIdentifier nameIdentifier,
                                      String targetNamespace)
                               throws FSMsgException
Constructor to create FSNameIdentifierMappingRequest.

パラメータ:
providerID - the requesting provider's ID
nameIdentifier - the NameIdentifier qualified by the requesting service provider
targetNamespace - the provider ID of the other service provider which the requesting service provider would subsequently communicate with
例外:
FSMsgException - if there is an error creating the object.

FSNameIdentifierMappingRequest

public FSNameIdentifierMappingRequest(Element root)
                               throws FSMsgException
Constructor to create FSNameIdentifierMappingRequest from the Document Element.

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

parseXML

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

パラメータ:
xml - XML String
戻り値:
the FSNameIdentifierMappingRequest object.
例外:
FSMsgException - if there is an error creating this object.

getProviderID

public String getProviderID()
Returns the ProviderID attribute. This is the requesting Service Providers's identifier.

戻り値:
the ProviderID attribute.

getNameIdentifier

public NameIdentifier getNameIdentifier()
Returns the NameIdentifier object qualified by the requesting service provider .

戻り値:
the NameIdentifier object qualified by the requesting service provider .

getTargetNamespace

public String getTargetNamespace()
Returns the value of TargetNamespace attribute.

戻り値:
the value of TargetNamespace attribute.

signXML

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

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

signXML

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

パラメータ:
certAlias - the alias (name) of the certificate used for signing the XML document
例外:
SAMLException - it there is an error.

toXMLString

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

戻り値:
An XML String representing the response. NOTE: this is a complete SAML response xml string with ResponseID, MajorVersion, etc.
例外:
FSMsgException

toXMLString

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

戻り値:
An XML String representing the 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 <samlp:Response> 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.
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.