Class InvalidAuthenticationException

All Implemented Interfaces:
Serializable

public class InvalidAuthenticationException extends CrowdException
Thrown when the attempted authentication is not valid.
See Also:
  • Constructor Details

    • InvalidAuthenticationException

      public InvalidAuthenticationException(String username, Directory directory, Throwable cause)
      Since:
      4.4.0
    • InvalidAuthenticationException

      public InvalidAuthenticationException(String msg)
      Constructs a new InvalidAuthenticationException with the specified detail message.
      Parameters:
      msg - detail message
    • InvalidAuthenticationException

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

      public InvalidAuthenticationException(Throwable cause)
      Constructs a new InvalidAuthenticationException with the specified cause.
      Parameters:
      cause - the cause
  • Method Details

    • newInstanceWithName

      public static InvalidAuthenticationException newInstanceWithName(String name)
      Creates a new instance of an InvalidAuthenticationException with a default detail message using the name of the entity that failed to authenticate.
      Parameters:
      name - name of entity
      Returns:
      new instance of InvalidAuthenticationException
    • newInstanceWithName

      public static InvalidAuthenticationException newInstanceWithName(String name, Throwable cause)
      Creates a new instance of an InvalidAuthenticationException with a default detail message using the name of the entity that failed to authenticate, and a cause.
      Parameters:
      name - name of entity
      cause - the cause
      Returns:
      new instance of InvalidAuthenticationException
    • newInstanceWithNameAndDescriptionFromCause

      public static InvalidAuthenticationException newInstanceWithNameAndDescriptionFromCause(String name, Throwable cause)
    • getUsername

      @Nullable public String getUsername()
      Since:
      4.4.0
    • getDirectory

      @Nullable public Directory getDirectory()
      Since:
      4.4.0