Class FSNameIdentifierMappingRequest
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractRequest
-
- com.sun.identity.federation.message.FSNameIdentifierMappingRequest
-
@Deprecated public class FSNameIdentifierMappingRequest extends AbstractRequest
Deprecated.since 12.0.0The classFSNameIdentifierMappingRequestis used to create or parseNameIdentifierMappingRequest.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml.protocol.AbstractRequest
issueInstant, majorVersion, requestID, respondWiths, signature, signed, valid
-
-
Constructor Summary
Constructors Constructor Description FSNameIdentifierMappingRequest(String providerID, NameIdentifier nameIdentifier, String targetNamespace)Deprecated.Constructor to createFSNameIdentifierMappingRequest.FSNameIdentifierMappingRequest(Element root)Deprecated.Constructor to createFSNameIdentifierMappingRequestfrom the Document Element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NameIdentifiergetNameIdentifier()Deprecated.Returns theNameIdentifierobject qualified by the requesting service provider .StringgetProviderID()Deprecated.Returns theProviderIDattribute.StringgetTargetNamespace()Deprecated.Returns the value ofTargetNamespaceattribute.static FSNameIdentifierMappingRequestparseXML(String xml)Deprecated.ReturnsFSNameIdentifierMappingRequestobject.voidsignXML()Deprecated.Signs the XML document representingNameIdentifierMappingRequestusing the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.voidsignXML(String certAlias)Deprecated.Signs the XML document representingNameIdentifierMappingRequestusing the specified certificate.StringtoXMLString()Deprecated.Returns the string representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns the string representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Returns a String representation of the <samlp:Response> element.-
Methods inherited from class com.sun.identity.saml.protocol.AbstractRequest
addRespondWith, getIssueInstant, getMajorVersion, getMinorVersion, getRequestID, getRespondWith, getSignature, isSignatureValid, isSigned, setIssueInstant, setMajorVersion, setMinorVersion, setRequestID, setSignature
-
-
-
-
Constructor Detail
-
FSNameIdentifierMappingRequest
public FSNameIdentifierMappingRequest(String providerID, NameIdentifier nameIdentifier, String targetNamespace) throws FSMsgException
Deprecated.Constructor to createFSNameIdentifierMappingRequest.- Parameters:
providerID- the requesting provider's IDnameIdentifier- theNameIdentifierqualified by the requesting service providertargetNamespace- the provider ID of the other service provider which the requesting service provider would subsequently communicate with- Throws:
FSMsgException- if there is an error creating the object.
-
FSNameIdentifierMappingRequest
public FSNameIdentifierMappingRequest(Element root) throws FSMsgException
Deprecated.Constructor to createFSNameIdentifierMappingRequestfrom the Document Element.- Parameters:
root- theNameIdentifierMappingRequestDocument element.- Throws:
FSMsgException- if there is an error.
-
-
Method Detail
-
parseXML
public static FSNameIdentifierMappingRequest parseXML(String xml) throws FSMsgException
Deprecated.ReturnsFSNameIdentifierMappingRequestobject. This object is created by parsing theXMLstring.- Parameters:
xml-XMLString- Returns:
- the
FSNameIdentifierMappingRequestobject. - Throws:
FSMsgException- if there is an error creating this object.
-
getProviderID
public String getProviderID()
Deprecated.Returns theProviderIDattribute. This is the requesting Service Providers's identifier.- Returns:
- the
ProviderIDattribute.
-
getNameIdentifier
public NameIdentifier getNameIdentifier()
Deprecated.Returns theNameIdentifierobject qualified by the requesting service provider .- Returns:
- the
NameIdentifierobject qualified by the requesting service provider .
-
getTargetNamespace
public String getTargetNamespace()
Deprecated.Returns the value ofTargetNamespaceattribute.- Returns:
- the value of
TargetNamespaceattribute.
-
signXML
public void signXML() throws SAMLExceptionDeprecated.Signs the XML document representingNameIdentifierMappingRequestusing the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.- Specified by:
signXMLin classAbstractRequest- Throws:
SAMLException- if there is an error signing the XML document.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs the XML document representingNameIdentifierMappingRequestusing the specified certificate.- Parameters:
certAlias- the alias (name) of the certificate used for signing the XML document- Throws:
SAMLException- it there is an error.
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns the string representation of this object. This method translates the response to an XML document string.- Returns:
- An XML String representing the response. NOTE: this is a complete SAML response xml string with ResponseID, MajorVersion, etc.
- Throws:
FSMsgException
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns the string representation of this object.- Returns:
- An XML String representing the response.
- Throws:
FSMsgException- if there is an error converting this object ot a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
Deprecated.Returns a String representation of the <samlp:Response> element.- Parameters:
includeNS- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.includeHeader- Determines whether the output include the xml declaration header.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object ot a string.
-
-