FileDocCategorySizeDatePackage
LoginException.javaAPI DocGlassfish v2 API3206Fri May 04 22:35:22 BST 2007com.sun.enterprise.security

LoginException

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
see
com.sun.enterprise.security.auth.AuthenticationStatus
author
Harish Prabandham
author
Harpreet Singh

Fields Summary
private static com.sun.enterprise.util.LocalStringManagerImpl
localStrings
private boolean
status
Constructors Summary
public LoginException(String message)
Create a new LoginException object with the given message

param
The message indicating why authentication failed.



                         
       
	super(message);
    
public LoginException(boolean as)
Create a new LoginException object with the given authentication value.

param
The AuthenticationStatus object

	super(localStrings.getLocalString("enterprise.security.login_failed", 
					   "Login Failed."));
	status = as;
    
Methods Summary
public booleangetStatus()
Returns the status of the Authentication.

	return status;