Class FSLogoutResponse
- java.lang.Object
-
- com.sun.identity.saml.protocol.AbstractResponse
-
- com.sun.identity.federation.message.FSLogoutResponse
-
@Deprecated public class FSLogoutResponse extends AbstractResponse
Deprecated.since 12.0.0This class has methods to create a LibertyLogoutResponse.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.protected StringsignatureStringDeprecated.protected StringxmlStringDeprecated.-
Fields inherited from class com.sun.identity.saml.protocol.AbstractResponse
issueInstant, majorVersion, minorVersion, recipient, responseID, signature, signed, valid, validationDone
-
-
Constructor Summary
Constructors Constructor Description FSLogoutResponse()Deprecated.Default Constructor.FSLogoutResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState)Deprecated.Constructor createsFSLogoutResponseobject.FSLogoutResponse(Element root)Deprecated.Constructor createsFSLogoutResponseobject from a 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 the value ofMinorVersionattribute.StringgetProviderId()Deprecated.Returns the value ofProviderIDattribute.StringgetRelayState()Deprecated.Returns the value ofRelayStateattribute.StringgetResponseTo()Deprecated.Returns the value ofInResponseToattribute.StringgetSignatureString()Deprecated.Returns the SignedLogoutResponsestring.StatusgetStatus()Deprecated.Returns the LogoutStatus.static FSLogoutResponseparseBASE64EncodedString(String encodedRes)Deprecated.ReturnsFSLogoutResponseobject.static FSLogoutResponseparseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request)Deprecated.ReturnsFSLogoutResponseobject.static FSLogoutResponseparseXML(String xml)Deprecated.Returns theFSLogoutResponseobject.voidsetID(String id)Deprecated.Sets the value ofidattribute.voidsetMinorVersion(int version)Deprecated.Sets the value ofMinorVersionattribute.voidsetProviderId(String providerId)Deprecated.Sets the value ofProviderIDattribute.voidsetRelayState(String relayState)Deprecated.Set the value ofRelayStateattribute.voidsetResponseTo(String inResponseTo)Deprecated.Sets the value ofInResponseToattribute.booleansetSignature(Element elem)Deprecated.Sets the Signature.voidsetStatus(Status status)Deprecated.Sets the LogoutStatus.voidsetStatus(String status)Deprecated.Sets the LogoutStatus.voidsignXML()Deprecated.Unsupported operation.voidsignXML(String certAlias)Deprecated.Signs theLogoutResponse.StringtoBASE64EncodedString()Deprecated.Returns a Base64 Encoded String.StringtoURLEncodedQueryString()Deprecated.Returns an URL Encoded String.StringtoXMLString()Deprecated.Returns a String representation of theLogoutResponseobject.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns a String representation of theLogoutResponseobject.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Returns a String representation of theLogoutResponseobject.-
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
-
FSLogoutResponse
public FSLogoutResponse()
Deprecated.Default Constructor.
-
FSLogoutResponse
public FSLogoutResponse(String responseID, String inResponseTo, Status status, String providerId, String relayState) throws FSMsgException
Deprecated.Constructor createsFSLogoutResponseobject.- Parameters:
responseID- the value ofResponseIDattribute.inResponseTo- the value ofinResponseToattribute.status- the LogoutStatusobject.providerId- the value ofProviderIDattribute.relayState- the value ofRelayStateattribute.- Throws:
FSMsgException
-
FSLogoutResponse
public FSLogoutResponse(Element root) throws FSMsgException, SAMLException
Deprecated.Constructor createsFSLogoutResponseobject from a Document element.- Parameters:
root- the Document element object.- Throws:
FSMsgException- if this object cannot be created.SAMLException- if there is an error.
-
-
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()
-
getResponseTo
public String getResponseTo()
Deprecated.Returns the value ofInResponseToattribute.- Returns:
- the value of
InResponseToattribute. - See Also:
setResponseTo(String)
-
setResponseTo
public void setResponseTo(String inResponseTo)
Deprecated.Sets the value ofInResponseToattribute.- Parameters:
inResponseTo- the value ofInResponseToattribute.- See Also:
getResponseTo()
-
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 ofProviderIDattribute.- Parameters:
providerId- the value ofProviderIDattribute.- See Also:
getProviderId()
-
getSignatureString
public String getSignatureString()
Deprecated.Returns the SignedLogoutResponsestring.- Returns:
- signatureString the Signed
LogoutResponsestring.
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns the value ofMinorVersionattribute.- Overrides:
getMinorVersionin classAbstractResponse- Returns:
- the value of
MinorVersionattribute. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets the value ofMinorVersionattribute.- Overrides:
setMinorVersionin classAbstractResponse- Parameters:
version- thevalue ofMinorVersionattribute.- See Also:
getMinorVersion()
-
getStatus
public Status getStatus()
Deprecated.Returns the LogoutStatus.- Returns:
- the Logout
Status. - See Also:
setStatus(String),setStatus(Status)
-
setStatus
public void setStatus(String status)
Deprecated.Sets the LogoutStatus.- Parameters:
status- the LogoutStatus- See Also:
getStatus()
-
setStatus
public void setStatus(Status status)
Deprecated.Sets the LogoutStatus.- Parameters:
status- the LogoutStatus- See Also:
getStatus()
-
parseXML
public static FSLogoutResponse parseXML(String xml) throws FSMsgException
Deprecated.Returns theFSLogoutResponseobject.- Parameters:
xml- the XML string to be parsed.- Returns:
FSLogoutResponseobject created from the XML string.- Throws:
FSMsgException- if there is error creating the object.
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns a String representation of theLogoutResponseobject. This method translates the response to an XML string.- Returns:
- An XML String representing the logout response.
- Throws:
FSMsgException
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns a String representation of theLogoutResponseobject.- Returns:
- An XML String representing the logout 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 theLogoutResponseobject.- 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.
-
parseBASE64EncodedString
public static FSLogoutResponse parseBASE64EncodedString(String encodedRes) throws FSMsgException, SAMLException
Deprecated.ReturnsFSLogoutResponseobject. The object is created by parsing an Base64 encode authentication request String.- Parameters:
encodedRes- the encode 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()
Deprecated.Unsupported operation.- Specified by:
signXMLin classAbstractResponse
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs theLogoutResponse.- Parameters:
certAlias- the Certificate Alias.- Throws:
XMLSignatureException- if this object cannot be signed.SAMLException
-
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 FSLogoutResponse parseURLEncodedRequest(jakarta.servlet.http.HttpServletRequest request) throws FSMsgException, SAMLException
Deprecated.ReturnsFSLogoutResponseobject. The object is creating by parsing theHttpServletRequestobject.- Parameters:
request- theHttpServletRequestobject.- Throws:
FSMsgException- if there is an error creating this object.SAMLException- if there is an error.
-
-