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:
    AuthenticationStatus, Serialized Form
    • Constructor Detail

      • LoginException

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

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

      • getStatus

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