KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)CredentialExpiredException.java 1.17 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 a <code>Credential</code> has expired.
12  *
13  * <p> This exception is thrown by LoginModules when they determine
14  * that a <code>Credential</code> has expired.
15  * For example, a <code>LoginModule</code> authenticating a user
16  * in its <code>login</code> method may determine that the user's
17  * password, although entered correctly, has expired. In this case
18  * the <code>LoginModule</code> throws this exception to notify
19  * the application. The application can then take the appropriate
20  * steps to assist the user in updating the password.
21  *
22  * @version 1.17, 12/19/03
23  */

24 public class CredentialExpiredException extends CredentialException JavaDoc {
25
26     private static final long serialVersionUID = -5344739593859737937L;
27
28     /**
29      * Constructs a CredentialExpiredException with no detail message. A detail
30      * message is a String that describes this particular exception.
31      */

32     public CredentialExpiredException() {
33     super();
34     }
35
36     /**
37      * Constructs a CredentialExpiredException with the specified detail
38      * message. A detail message is a String that describes this particular
39      * exception.
40      *
41      * <p>
42      *
43      * @param msg the detail message.
44      */

45     public CredentialExpiredException(String JavaDoc msg) {
46     super(msg);
47     }
48 }
49
Popular Tags