Class FSNameRegistrationResponse
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractResponse
-
- com.sun.identity.federation.message.FSNameRegistrationResponse
-
@Deprecated public class FSNameRegistrationResponse extends AbstractResponse
Deprecated.since 12.0.0This class has methods to createNameRegistrationResponseobject.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.protected intminorVersionDeprecated.protected StringsignatureStringDeprecated.protected StringxmlStringDeprecated.-
Fields inherited from class com.sun.identity.saml.protocol.AbstractResponse
inResponseTo, issueInstant, majorVersion, recipient, responseID, signature, signed, valid, validationDone
-
-
Constructor Summary
Constructors Constructor Description FSNameRegistrationResponse()Deprecated.Default Constructor.FSNameRegistrationResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState)Deprecated.Constructor creates theFSNameRegistrationResponseobject.FSNameRegistrationResponse(Element root)Deprecated.Constructor creates theFSNameRegistrationResponseobject from Document Element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetID()Deprecated.Returns the value ofidattribute.intgetMinorVersion()Deprecated.Returns theMinorVersion.StringgetProviderId()Deprecated.Returns the value ofProviderIDattribute.StringgetRelayState()Deprecated.Returns the value ofRelayStateattribute.StringgetSignatureString()Deprecated.Returns the signedNameRegistrationResponsestring.StringgetSignedXMLString()Deprecated.Returns signedXMLrepresentation of this object.StatusgetStatus()Deprecated.Returns the ResponseStatus.static FSNameRegistrationResponseparseBASE64EncodedString(String encodedRes)Deprecated.ReturnsFSNameRegistrationResponseobject.static FSNameRegistrationResponseparseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request)Deprecated.ReturnsFSNameRegistrationLogoutResponseobject.static FSNameRegistrationResponseparseXML(String xml)Deprecated.Returns theFSNameRegistrationResponseobject.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersion.voidsetProviderId(String providerId)Deprecated.Sets the value of providerID attribute.voidsetRelayState(String relayState)Deprecated.Set the value ofRelayStateattribute.booleansetSignature(Element elem)Deprecated.Sets the Signature.voidsetStatus(Status status)Deprecated.Sets the ResponseStatus.voidsignXML()Deprecated.Unsupported operation.voidsignXML(String certAlias)Deprecated.Signs the Name Registration Response.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded String.StringtoURLEncodedQueryString()Deprecated.Returns an URL Encoded String.StringtoXMLString()Deprecated.Returns the string representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns a String representation of the Logout Response.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Returns a String representation of the Logout Response.-
Methods inherited from class com.sun.identity.saml.protocol.AbstractResponse
getInResponseTo, getIssueInstant, getMajorVersion, getRecipient, getResponseID, getSignature, isSignatureValid, isSigned, setInResponseTo, setIssueInstant, setMajorVersion, setRecipient, setResponseID
-
-
-
-
Constructor Detail
-
FSNameRegistrationResponse
public FSNameRegistrationResponse()
Deprecated.Default Constructor.
-
FSNameRegistrationResponse
public FSNameRegistrationResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState) throws FSMsgException
Deprecated.Constructor creates theFSNameRegistrationResponseobject.- Parameters:
responseID- the value ofResponseIDattribute.inResponseTo- the value ofInResponseToattribute.status- theStatusobject.providerId- the value ofProviderIDattribute.relayState- the value ofRelayStateattribute.- Throws:
FSMsgException- if there is an error creating this object.
-
FSNameRegistrationResponse
public FSNameRegistrationResponse(Element root) throws FSMsgException, SAMLException
Deprecated.Constructor creates theFSNameRegistrationResponseobject from Document Element.- Parameters:
root- the Document Element objec.t- Throws:
FSMsgException- if there is an error creating this object.SAMLException- if there is an error creating this object.
-
-
Method Detail
-
getRelayState
public String getRelayState()
Deprecated.Returns the value ofRelayStateattribute.- Returns:
- the value of
RelayStateattribute. - See Also:
setRelayState(String)
-
setRelayState
public void setRelayState(String relayState)
Deprecated.Set the value ofRelayStateattribute.- Parameters:
relayState- the value ofRelayStateattribute.- See Also:
getRelayState()
-
getID
public String getID()
Deprecated.Returns the value ofidattribute.- Returns:
- the value of
idattribute. - See Also:
setID(String)
-
setID
public void setID(String id)
Deprecated.Sets the value ofidattribute.- Parameters:
id- the value ofidattribute.- See Also:
getID()
-
getProviderId
public String getProviderId()
Deprecated.Returns the value ofProviderIDattribute.- Returns:
- the value of
ProviderIDattribute.
-
setProviderId
public void setProviderId(String providerId)
Deprecated.Sets the value of providerID attribute.- Parameters:
providerId- the value of providerID attribute.- See Also:
getProviderId()
-
getSignedXMLString
public String getSignedXMLString()
Deprecated.Returns signedXMLrepresentation of this object.- Returns:
- xmlString signed
XMLrepresentation of this object.
-
getSignatureString
public String getSignatureString()
Deprecated.Returns the signedNameRegistrationResponsestring.- Returns:
- signatureString the signed
NameRegistrationResponsestring.
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersion.- Overrides:
getMinorVersionin classAbstractResponse- Returns:
- the
MinorVersion. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersion.- Overrides:
setMinorVersionin classAbstractResponse- Parameters:
version- theMinorVersion.- See Also:
getMinorVersion()
-
getStatus
public Status getStatus()
Deprecated.Returns the ResponseStatus.- Returns:
- the Response
Status. - See Also:
setStatus(Status)
-
setStatus
public void setStatus(Status status)
Deprecated.Sets the ResponseStatus.- Parameters:
status- the ResponseStatus- See Also:
getStatus()
-
parseXML
public static FSNameRegistrationResponse parseXML(String xml) throws FSMsgException
Deprecated.Returns theFSNameRegistrationResponseobject.- Parameters:
xml- the XML string to be parsed.- Returns:
FSNameRegistrationResponseeobject created from the XML string.- Throws:
FSMsgException- if there is error creating the object.
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns the string representation of this object. This method translates the response to an XML string.- Returns:
- An XML String representing the Response.
- Throws:
FSMsgException- on error.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns a String representation of the Logout Response.- 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 to a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
Deprecated.Returns a String representation of the Logout Response.- 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 to a string.
-
parseBASE64EncodedString
public static FSNameRegistrationResponse parseBASE64EncodedString(String encodedRes) throws FSMsgException, SAMLException
Deprecated.ReturnsFSNameRegistrationResponseobject. The object is created by parsing an Base64 encode Name Registration Response string.- Parameters:
encodedRes- the encoded response string- Throws:
FSMsgException- if there is an error creating this object.SAMLException- if there is an error creating this object.
-
toBASE64EncodedString
public String toBASE64EncodedString() throws FSMsgException
Deprecated.Returns a Base64 Encoded String.- Returns:
- a Base64 Encoded String.
- Throws:
FSMsgException- if there is an error encoding the string.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs the Name Registration Response.- Parameters:
certAlias- the Certificate Alias.- Throws:
SAMLException- if this object cannot be signed.
-
signXML
public void signXML() throws SAMLExceptionDeprecated.Unsupported operation.- Specified by:
signXMLin classAbstractResponse- Throws:
SAMLException- if could not sign the object.
-
setSignature
public boolean setSignature(Element elem)
Deprecated.Sets the Signature.- Overrides:
setSignaturein classAbstractResponse- Parameters:
elem- the Document Element.- Returns:
- true if success otherwise false.
-
toURLEncodedQueryString
public String toURLEncodedQueryString() throws FSMsgException
Deprecated.Returns an URL Encoded String.- Returns:
- a url encoded query string.
- Throws:
FSMsgException- if there is an error.
-
parseURLEncodedRequest
public static FSNameRegistrationResponse parseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
Deprecated.ReturnsFSNameRegistrationLogoutResponseobject. The object is creating by parsing theHttpServletRequestobject.- Parameters:
request- theHttpServletRequestobject.- Throws:
FSMsgException- if there is an error creating this object.SAMLException
-
-