Class AuthenticationFailureException

  • All Implemented Interfaces:
    Serializable

    public class AuthenticationFailureException
    extends AppException
    Exception to indicate that authentication is failed.
    Since:
    6.0
    Author:
    Jon van Leuven
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationFailureException

        public AuthenticationFailureException​(String userName)
        Create an authentication exception for a username.
        Parameters:
        userName - The username for which the authentication failed (optional).
      • AuthenticationFailureException

        public AuthenticationFailureException​(String userName,
                                              Throwable cause)
        Create an authentication exception for a username.
        Parameters:
        userName - The username for which the authentication failed (optional).
        cause - The actual cause of the error.
      • AuthenticationFailureException

        public AuthenticationFailureException​(Throwable cause)
        Create an authentication exception for a username.
        Parameters:
        cause - The actual cause of the error.
    • Method Detail

      • getUserName

        public String getUserName()
        This method returns the user name for which the authentication failed.
        Returns:
        the user name (may be null).