Class LoginException

  • All Implemented Interfaces:
    Serializable

    public class LoginException
    extends SecurityException
    LoginException is thrown by the LoginContext class whenever the following happens:
    • If the client is unable to authenticate successfully with the
    Author:
    Harish Prabandham, Harpreet Singh
    See Also:
    Serialized Form
    • Constructor Detail

      • LoginException

        public LoginException​(String message)
        Create a new LoginException object with the given message
        Parameters:
        message - indicating why authentication failed.
      • LoginException

        public LoginException​(String message,
                              Throwable cause)
        Create a new LoginException object with the given message
        Parameters:
        message - indicating why authentication failed.
        cause - original cause
      • LoginException

        public LoginException​(boolean as)
        Create a new LoginException object with the given authentication value.
        Parameters:
        as - status boolean
    • Method Detail

      • getStatus

        public boolean getStatus()
        Returns:
        the status of the Authentication.