KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > security > auth > login > FailedLoginException


1 /*
2  * @(#)FailedLoginException.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.security.auth.login;
9
10 /**
11  * Signals that user authentication failed.
12  *
13  * <p> This exception is thrown by LoginModules if authentication failed.
14  * For example, a <code>LoginModule</code> throws this exception if
15  * the user entered an incorrect password.
16  *
17  * @version 1.15, 12/19/03
18  */

19 public class FailedLoginException extends LoginException JavaDoc {
20
21     private static final long serialVersionUID = 802556922354616286L;
22
23     /**
24      * Constructs a FailedLoginException with no detail message. A detail
25      * message is a String that describes this particular exception.
26      */

27     public FailedLoginException() {
28     super();
29     }
30
31     /**
32      * Constructs a FailedLoginException with the specified detail
33      * message. A detail message is a String that describes this particular
34      * exception.
35      *
36      * <p>
37      *
38      * @param msg the detail message.
39      */

40     public FailedLoginException(String JavaDoc msg) {
41     super(msg);
42     }
43 }
44
Popular Tags