Class FSAuthnRequestEnvelope


  • @Deprecated
    public class FSAuthnRequestEnvelope
    extends Object
    Deprecated.
    since 12.0.0
    This class defines methods for setting and retrieving attributes and elements associated with a Liberty Authentication Request.
    • Constructor Detail

      • FSAuthnRequestEnvelope

        public FSAuthnRequestEnvelope()
        Deprecated.
        Default Constructor.
      • FSAuthnRequestEnvelope

        public FSAuthnRequestEnvelope​(FSAuthnRequest authnRequest,
                                      String providerID,
                                      String providerName,
                                      String assertionConsumerServiceURL,
                                      FSIDPList idpList,
                                      boolean isPassive)
        Deprecated.
        Constructs a new FSAuthnRequestEnvelope object.
        Parameters:
        authnRequest - the authentication request
        providerID - the provider's identifier
        providerName - name of the provider
        assertionConsumerServiceURL - absolute url of the assertion consumer service
        idpList - list of identity providers
        isPassive - true if identity provider must not interact with the Principal.
      • FSAuthnRequestEnvelope

        public FSAuthnRequestEnvelope​(Element root)
                               throws FSMsgException
        Deprecated.
        Constructs a new FSAuthnRequestEnvelope object from a Document Element.
        Parameters:
        root - the Document Element .
        Throws:
        FSMsgException - if there is an error creating this object.
    • Method Detail

      • getMinorVersion

        public int getMinorVersion()
        Deprecated.
        Returns the value of MinorVersion property.
        Returns:
        the value of MinorVersion property.
      • setMinorVersion

        public void setMinorVersion​(int minorVersion)
        Deprecated.
        Sets the value of MinorVersion property.
        Parameters:
        minorVersion - the value of MinorVersion property.
        See Also:
        setMinorVersion(int)
      • toXMLString

        public String toXMLString()
                           throws FSMsgException
        Deprecated.
        Returns the request as an XML Document String based on the Liberty Request schema.
        Returns:
        XML String representing the request.
        Throws:
        FSMsgException
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws FSMsgException
        Deprecated.
        Creates a String representation of the <lib:AuthnRequest> element.
        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:
        String containing the valid XML for this element.
        Throws:
        FSMsgException - if there is an error.
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS,
                                  boolean includeHeader)
                           throws FSMsgException
        Deprecated.
        Creates a String representation of the <lib:AuthnRequest> element.
        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
      • parseXML

        public static FSAuthnRequestEnvelope parseXML​(String xml)
                                               throws FSMsgException
        Deprecated.
        Returns the FSAuthnRequestEnvelope object.
        Parameters:
        xml - the XML string to create this object from
        Returns:
        FSAuthnRequestEnvelope object.
        Throws:
        FSMsgException - if there is error creating the object.
      • getAssertionConsumerServiceURL

        public String getAssertionConsumerServiceURL()
        Deprecated.
        Returns the value of AssertionConsumerServiceURL attribute.
        Returns:
        the value of AssertionConsumerServiceURL attribute.
        See Also:
        setAssertionConsumerServiceURL(String)
      • setAssertionConsumerServiceURL

        public void setAssertionConsumerServiceURL​(String assertionConsumerURL)
        Deprecated.
        Sets the value of AssertionConsumerServiceURL attribute.
        Parameters:
        assertionConsumerURL - the value of AssertionConsumerServiceURL attribute.
        See Also:
        getAssertionConsumerServiceURL()
      • setAuthnRequest

        public void setAuthnRequest​(FSAuthnRequest authnRequest)
        Deprecated.
        Sets the FSAuthnRequest object.
        Parameters:
        authnRequest - the FSAuthnRequest object.
        See Also:
        getAuthnRequest()
      • setIDPList

        public void setIDPList​(FSIDPList idpList)
        Deprecated.
        Sets the FSIDPList object.
        Parameters:
        idpList - the FSIDPList object.
        See Also:
        getIDPList()
      • getOtherElements

        public List getOtherElements()
        Deprecated.
        Returns a list of elements.
        Returns:
        list of elements.
        See Also:
        setOtherElements(List)
      • setOtherElements

        public void setOtherElements​(List otherElements)
        Deprecated.
        Sets a list of elements.
        Parameters:
        otherElements - a list of elements.
        See Also:
        getOtherElements()
      • parseBASE64EncodedString

        public static FSAuthnRequestEnvelope parseBASE64EncodedString​(String encodedReq)
                                                               throws FSMsgException
        Deprecated.
        Returns FSAuthnRequestEnvelope object. The object is created by parsing an Base64 encode authentication request String.
        Parameters:
        encodedReq - the encoded string.
        Throws:
        FSMsgException
      • toBASE64EncodedString

        public String toBASE64EncodedString()
                                     throws FSMsgException
        Deprecated.
        Returns a Base64 Encoded Authentication Request String.
        Returns:
        a Base64 Encoded Authentication Request String.
        Throws:
        FSMsgException - if there is an error encoding the string.