Class AuthnContext


  • @Deprecated
    public class AuthnContext
    extends Object
    Deprecated.
    since 12.0.0
    This class AuthnContext represents an Authentication Context for the authenticated user with a requested authn context.
    • Field Detail

      • authnContextClassRef

        protected String authnContextClassRef
        Deprecated.
      • authnContextStatementRef

        protected String authnContextStatementRef
        Deprecated.
      • minorVersion

        protected int minorVersion
        Deprecated.
    • Constructor Detail

      • AuthnContext

        public AuthnContext()
        Deprecated.
        Default constructor
      • AuthnContext

        public AuthnContext​(String authnContextClassRef,
                            String authnContextStatementRef)
        Deprecated.
        Constructor creates AuthnContext object.
        Parameters:
        authnContextClassRef - Authentication Context Class Reference URI
        authnContextStatementRef - Authentication Context Statement Reference URI
      • AuthnContext

        public AuthnContext​(Element root)
                     throws FSMsgException
        Deprecated.
        Constructor creates AuthnContext object from the Document Element.
        Parameters:
        root - the Document Element.
        Throws:
        FSMsgException - on error.
    • Method Detail

      • setAuthnContextClassRef

        public void setAuthnContextClassRef​(String authnContextClassRef)
        Deprecated.
        Sets the AuthnContext Class Reference URI.
        Parameters:
        authnContextClassRef - AuthnContext Class Ref URI.
        See Also:
        getAuthnContextClassRef()
      • setAuthnContextStatementRef

        public void setAuthnContextStatementRef​(String authnContextStatementRef)
        Deprecated.
        Sets AuthnContext Statement Reference URI.
        Parameters:
        authnContextStatementRef - AuthnContext Statement Ref URI.
        See Also:
        getAuthnContextStatementRef()
      • getMinorVersion

        public int getMinorVersion()
        Deprecated.
        Returns the MinorVersion attribute.
        Returns:
        the Minor Version.
        See Also:
        setMinorVersion(int)
      • setMinorVersion

        public void setMinorVersion​(int version)
        Deprecated.
        Sets the MinorVersion.
        Parameters:
        version - the minor version in the assertion.
        See Also:
        setMinorVersion(int)
      • toXMLString

        public String toXMLString()
                           throws FSMsgException
        Deprecated.
        Returns the string representation of this object. This method translates the response to an XML document string.
        Returns:
        An XML String representing the response. NOTE: this is a complete SAML response xml string with ResponseID, MajorVersion, etc.
        Throws:
        FSMsgException
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws FSMsgException
        Deprecated.
        Returns a String representation of this 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.
        Returns:
        a string containing the valid XML for this element
        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 this 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.