Class Saml2AuthenticationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class Saml2AuthenticationException
    extends AuthenticationException
    This exception is thrown for all SAML 2.0 related Authentication errors.

    There are a number of scenarios where an error may occur, for example:

    • The response or assertion request is missing or malformed
    • Missing or invalid subject
    • Missing or invalid signatures
    • The time period validation for the assertion fails
    • One of the assertion conditions was not met
    • Decryption failed
    • Unable to locate a subject identifier, commonly known as username
    Since:
    5.2
    See Also:
    Serialized Form
    • Constructor Detail

      • Saml2AuthenticationException

        public Saml2AuthenticationException​(Saml2Error error)
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
      • Saml2AuthenticationException

        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.Throwable cause)
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        cause - the root cause
      • Saml2AuthenticationException

        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.String message)
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        message - the detail message
      • Saml2AuthenticationException

        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.String message,
                                            java.lang.Throwable cause)
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        message - the detail message
        cause - the root cause
      • Saml2AuthenticationException

        @Deprecated
        public Saml2AuthenticationException​(Saml2Error error)
        Deprecated.
        Use Saml2Error constructor instead
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
      • Saml2AuthenticationException

        @Deprecated
        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.Throwable cause)
        Deprecated.
        Use Saml2Error constructor instead
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        cause - the root cause
      • Saml2AuthenticationException

        @Deprecated
        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.String message)
        Deprecated.
        Use Saml2Error constructor instead
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        message - the detail message
      • Saml2AuthenticationException

        @Deprecated
        public Saml2AuthenticationException​(Saml2Error error,
                                            java.lang.String message,
                                            java.lang.Throwable cause)
        Deprecated.
        Use Saml2Error constructor instead
        Constructs a Saml2AuthenticationException using the provided parameters.
        Parameters:
        error - the SAML 2.0 Error
        message - the detail message
        cause - the root cause