Class FSLogoutResponse


  • @Deprecated
    public class FSLogoutResponse
    extends AbstractResponse
    Deprecated.
    since 12.0.0
    This class has methods to create a Liberty LogoutResponse.
    • Field Detail

      • xmlString

        protected String xmlString
        Deprecated.
      • signatureString

        protected String signatureString
        Deprecated.
      • id

        protected String id
        Deprecated.
    • 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 creates FSLogoutResponse object.
        Parameters:
        responseID - the value of ResponseID attribute.
        inResponseTo - the value of inResponseTo attribute.
        status - the Logout Status object.
        providerId - the value of ProviderID attribute.
        relayState - the value of RelayState attribute.
        Throws:
        FSMsgException
      • FSLogoutResponse

        public FSLogoutResponse​(Element root)
                         throws FSMsgException,
                                SAMLException
        Deprecated.
        Constructor creates FSLogoutResponse object 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 of RelayState attribute.
        Returns:
        the value of RelayState attribute.
        See Also:
        setRelayState(String)
      • setRelayState

        public void setRelayState​(String relayState)
        Deprecated.
        Set the value of RelayState attribute.
        Parameters:
        relayState - the value of RelayState attribute.
        See Also:
        getRelayState()
      • getResponseTo

        public String getResponseTo()
        Deprecated.
        Returns the value of InResponseTo attribute.
        Returns:
        the value of InResponseTo attribute.
        See Also:
        setResponseTo(String)
      • setResponseTo

        public void setResponseTo​(String inResponseTo)
        Deprecated.
        Sets the value of InResponseTo attribute.
        Parameters:
        inResponseTo - the value of InResponseTo attribute.
        See Also:
        getResponseTo()
      • getID

        public String getID()
        Deprecated.
        Returns the value of id attribute.
        Returns:
        the value of id attribute.
        See Also:
        setID(String)
      • setID

        public void setID​(String id)
        Deprecated.
        Sets the value of id attribute.
        Parameters:
        id - the value of id attribute.
        See Also:
        getID()
      • getProviderId

        public String getProviderId()
        Deprecated.
        Returns the value of ProviderID attribute.
        Returns:
        the value of ProviderID attribute.
      • setProviderId

        public void setProviderId​(String providerId)
        Deprecated.
        Sets the value of ProviderID attribute.
        Parameters:
        providerId - the value of ProviderID attribute.
        See Also:
        getProviderId()
      • getSignatureString

        public String getSignatureString()
        Deprecated.
        Returns the Signed LogoutResponse string.
        Returns:
        signatureString the Signed LogoutResponse string.
      • setMinorVersion

        public void setMinorVersion​(int version)
        Deprecated.
        Sets the value of MinorVersion attribute.
        Overrides:
        setMinorVersion in class AbstractResponse
        Parameters:
        version - thevalue of MinorVersion attribute.
        See Also:
        getMinorVersion()
      • setStatus

        public void setStatus​(String status)
        Deprecated.
        Sets the Logout Status.
        Parameters:
        status - the Logout Status
        See Also:
        getStatus()
      • setStatus

        public void setStatus​(Status status)
        Deprecated.
        Sets the Logout Status.
        Parameters:
        status - the Logout Status
        See Also:
        getStatus()
      • parseXML

        public static FSLogoutResponse parseXML​(String xml)
                                         throws FSMsgException
        Deprecated.
        Returns the FSLogoutResponse object.
        Parameters:
        xml - the XML string to be parsed.
        Returns:
        FSLogoutResponse object 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 the LogoutResponse object. 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 the LogoutResponse object.
        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 the LogoutResponse object.
        Parameters:
        includeNS - Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - 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.
        Returns FSLogoutResponse object. 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:
        signXML in class AbstractResponse
      • signXML

        public void signXML​(String certAlias)
                     throws SAMLException
        Deprecated.
        Signs the LogoutResponse.
        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:
        setSignature in class AbstractResponse
        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.
        Returns FSLogoutResponse object. The object is creating by parsing the HttpServletRequest object.
        Parameters:
        request - the HttpServletRequest object.
        Throws:
        FSMsgException - if there is an error creating this object.
        SAMLException - if there is an error.