Class FSNameIdentifierMappingResponse
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractResponse
-
- com.sun.identity.federation.message.FSNameIdentifierMappingResponse
-
@Deprecated public class FSNameIdentifierMappingResponse extends AbstractResponse
Deprecated.since 12.0.0The classFSNameIdentifierMappingResponseis used to create , parse theNameIdentifierMappingResponse.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml.protocol.AbstractResponse
inResponseTo, issueInstant, majorVersion, recipient, responseID, signature, signed, valid, validationDone
-
-
Constructor Summary
Constructors Constructor Description FSNameIdentifierMappingResponse(String providerID, String inResponseTo, Status status, NameIdentifier nameIdentifier)Deprecated.Constructor to createFSNameIdentifierMappingResponseobject.FSNameIdentifierMappingResponse(Element root)Deprecated.Constructor to createFSNameIdentifierMappingResponseobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NameIdentifiergetNameIdentifier()Deprecated.Returns theNameIdentifierobject.StringgetProviderID()Deprecated.Returns the value ofProviderIDattribute.StatusgetStatus()Deprecated.Returns theStatus.static FSNameIdentifierMappingResponseparseXML(String xml)Deprecated.CreatesFSNameIdentifierMappingResponseobject.voidsignXML()Deprecated.Signs the XML document representingNameIdentifierMappingResponseusing the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.voidsignXML(String certAlias)Deprecated.Signs theXMLdocument representingNameIdentifierMappingResponseusing the specified certificate.StringtoXMLString()Deprecated.Returns the string representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns a String representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Returns a String representation of this object.-
Methods inherited from class com.sun.identity.saml.protocol.AbstractResponse
getInResponseTo, getIssueInstant, getMajorVersion, getMinorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setMinorVersion, setRecipient, setResponseID, setSignature
-
-
-
-
Constructor Detail
-
FSNameIdentifierMappingResponse
public FSNameIdentifierMappingResponse(String providerID, String inResponseTo, Status status, NameIdentifier nameIdentifier) throws FSMsgException
Deprecated.Constructor to createFSNameIdentifierMappingResponseobject.- Parameters:
providerID- the value ofProviderIDattribute.inResponseTo- the value ofInResponseToattribute.status- theStatusobject.nameIdentifier- the resulting mapped identifier,NameIdentifier, for the desired identity federation.- Throws:
FSMsgException- on an error.
-
FSNameIdentifierMappingResponse
public FSNameIdentifierMappingResponse(Element root) throws FSMsgException
Deprecated.Constructor to createFSNameIdentifierMappingResponseobject. This object is created from the Document Element.- Parameters:
root- theNameIdentifierMappingResponseDocument Element- Throws:
FSMsgException- if there is an error creating the object.
-
-
Method Detail
-
parseXML
public static FSNameIdentifierMappingResponse parseXML(String xml) throws FSMsgException
Deprecated.CreatesFSNameIdentifierMappingResponseobject. This object is created by parsing theXMLstring.- Parameters:
xml- theXMLstring to be parse.- Returns:
- the
FSNameIdentifierMappingResponseobject. - Throws:
FSMsgException- if there is an error in parsing theXMLstring.
-
getProviderID
public String getProviderID()
Deprecated.Returns the value ofProviderIDattribute.- Returns:
- the value of
ProviderIDattribute.
-
getStatus
public Status getStatus()
Deprecated.Returns theStatus.- Returns:
- the
Status.
-
getNameIdentifier
public NameIdentifier getNameIdentifier()
Deprecated.Returns theNameIdentifierobject. This is the resulting mapped name identifier for the desired identity federation.- Returns:
NameIdentifierobject, the resulting mapped name identifier for the desired identity federation
-
signXML
public void signXML() throws SAMLExceptionDeprecated.Signs the XML document representingNameIdentifierMappingResponseusing the certificate indicated by the property "com.sun.identity.saml.xmlsig.certalias" in AMConfig.properties file.- Specified by:
signXMLin classAbstractResponse- Throws:
SAMLException- if there is an error signing theXMLstring.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs theXMLdocument representingNameIdentifierMappingResponseusing the specified certificate.- Parameters:
certAlias- the alias/name of the certificate used for signing the XML document- Throws:
SAMLException- if there is an error signing theXMLstring or if the message is already signed.
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns the string representation of this object.- Returns:
- An XML String representing the object.
- Throws:
FSMsgException- on error.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns a String representation of this object.- 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.- Returns:
- a string containing the valid XML for this element
- 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 this object.- 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.
-
-