Class FSResponse


  • @Deprecated
    public class FSResponse
    extends Response
    Deprecated.
    since 12.0.0
    This class contains methods for creating a Liberty Response.
    • Field Detail

      • id

        protected String id
        Deprecated.
    • Constructor Detail

      • FSResponse

        public FSResponse​(String responseID,
                          String inResponseTo,
                          Status status,
                          List contents)
                   throws SAMLException,
                          FSMsgException
        Deprecated.
        Constructor creates FSResponse object.
        Parameters:
        responseID - value of ResponseId attribute.
        inResponseTo - value of inResponseTo attribute.
        status - the Status object.
        contents - list containing response elements.
        Throws:
        SAMLException - it there is an error creating this object.
        FSMsgException - it there is an error creating this object.
      • FSResponse

        public FSResponse​(Element root)
                   throws SAMLException,
                          FSMsgException
        Deprecated.
        Constructor creates FSResponse object form a Document Element.
        Parameters:
        root - the Document Element object.
        Throws:
        SAMLException - if there is an error creating this object.
        FSMsgException - if there is an error creating this object.
    • Method Detail

      • 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()
      • getSignatureString

        public String getSignatureString()
        Deprecated.
        Returns the signed XML string.
        Returns:
        the signed XML string.
      • toXMLString

        public String toXMLString()
                           throws FSMsgException
        Deprecated.
        Returns a String representation of the Logout Response.
        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)
                           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 converted
        declareNS - : 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.
      • parseBASE64EncodedString

        public static FSResponse parseBASE64EncodedString​(String encodedRes)
                                                   throws FSMsgException,
                                                          SAMLException
        Deprecated.
        Returns FSResponse object. The object is created by parsing an Base64 encoded response string.
        Parameters:
        encodedRes - the encoded response string
        Throws:
        FSMsgException - if there is an error creating FSResponse object.
        FSMsgException - if there is an error creating FSResponse object.
        SAMLException
      • 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 Response.
        Parameters:
        certAlias - the Certificate Alias.
        Throws:
        XMLSignatureException - if FSAuthnRequest cannot be signed.
        SAMLException