@Deprecated public class FSNameIdentifierMappingResponse extends AbstractResponse
FSNameIdentifierMappingResponse
is used to
create , parse the NameIdentifierMappingResponse
.Constructor and Description |
---|
FSNameIdentifierMappingResponse(Element root)
Deprecated.
Constructor to create
FSNameIdentifierMappingResponse object. |
FSNameIdentifierMappingResponse(String providerID,
String inResponseTo,
Status status,
NameIdentifier nameIdentifier)
Deprecated.
Constructor to create
FSNameIdentifierMappingResponse object. |
Modifier and Type | Method and Description |
---|---|
NameIdentifier |
getNameIdentifier()
Deprecated.
Returns the
NameIdentifier object. |
String |
getProviderID()
Deprecated.
Returns the value of
ProviderID attribute. |
Status |
getStatus()
Deprecated.
Returns the
Status . |
static FSNameIdentifierMappingResponse |
parseXML(String xml)
Deprecated.
Creates
FSNameIdentifierMappingResponse object. |
void |
signXML()
Deprecated.
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)
Deprecated.
Signs the
XML document representing
NameIdentifierMappingResponse using the specified
certificate. |
String |
toXMLString()
Deprecated.
Returns the string representation of this object.
|
String |
toXMLString(boolean includeNS,
boolean declareNS)
Deprecated.
Returns a String representation of this object.
|
String |
toXMLString(boolean includeNS,
boolean declareNS,
boolean includeHeader)
Deprecated.
Returns a String representation of this object.
|
getInResponseTo, getIssueInstant, getMajorVersion, getMinorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setMinorVersion, setRecipient, setResponseID, setSignature
public FSNameIdentifierMappingResponse(String providerID, String inResponseTo, Status status, NameIdentifier nameIdentifier) throws FSMsgException
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.public FSNameIdentifierMappingResponse(Element root) throws FSMsgException
FSNameIdentifierMappingResponse
object.
This object is created from the Document Element.root
- the NameIdentifierMappingResponse
Document
ElementFSMsgException
- if there is an error creating the object.public static FSNameIdentifierMappingResponse parseXML(String xml) throws FSMsgException
FSNameIdentifierMappingResponse
object.
This object is created by parsing the XML
string.xml
- the XML
string to be parse.FSNameIdentifierMappingResponse
object.FSMsgException
- if there is an error in parsing the
XML
string.public String getProviderID()
ProviderID
attribute.ProviderID
attribute.public Status getStatus()
Status
.Status
.public NameIdentifier getNameIdentifier()
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 federationpublic void signXML() throws SAMLException
NameIdentifierMappingResponse
using the certificate
indicated by the property "com.sun.identity.saml.xmlsig.certalias"
in AMConfig.properties file.signXML
in class AbstractResponse
SAMLException
- if there is an error signing
the XML
string.public void signXML(String certAlias) throws SAMLException
XML
document representing
NameIdentifierMappingResponse
using the specified
certificate.certAlias
- the alias/name of the certificate used for signing
the XML documentSAMLException
- if there is an error signing
the XML
string or if the message is already
signed.public String toXMLString() throws FSMsgException
FSMsgException
- on error.public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
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.FSMsgException
- if there is an error converting
this object ot a string.public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
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.FSMsgException
- if there is an error converting
this object ot a string.Copyright © 2010-2018, ForgeRock All Rights Reserved.