Class AuthenticationException

All Implemented Interfaces:
Serializable

public class AuthenticationException extends SecurityException
Thrown if an authentication is invalid. An invalid authentication may be due to bad credentials (an unknown user, or bad password), or any other exception caught while trying to authenticate.
Since:
7.0.1
Author:
Moran Avigdor
See Also:
  • Constructor Details

    • AuthenticationException

      public AuthenticationException()
      Constructs a AuthenticationException with no detail message.
    • AuthenticationException

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

      public AuthenticationException(String message, Throwable cause)
      Creates a AuthenticationException with the specified detail message and cause.
      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • AuthenticationException

      public AuthenticationException(Throwable cause)
      Creates a AuthenticationException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)