Class AuthenticationException

  • All Implemented Interfaces:
    Serializable

    public class AuthenticationException
    extends GeneralSecurityException
    A generic authentication exception. This exception corresponds to the Jakarta Authentication AuthException in that whenever a method from the HttpAuthenticationMechanism throws this exception, the Jakarta Authentication bridge has to throw an AuthException back to the Jakarta Authentication runtime wrapping this exception.
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationException

        public AuthenticationException()
        Constructs a new AuthenticationException exception with null as its detail message.
      • AuthenticationException

        public AuthenticationException​(String message)
        Constructs a new AuthenticationException exception with the specified detail message.
        Parameters:
        message - the detail message.
      • AuthenticationException

        public AuthenticationException​(String message,
                                       Throwable cause)
        Constructs a new AuthenticationException exception with the specified detail message and cause.
        Parameters:
        message - the detail message.
        cause - the cause.
      • AuthenticationException

        public AuthenticationException​(Throwable cause)
        Constructs a new AuthenticationException exception with the specified cause.
        Parameters:
        cause - the cause.