KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)AccountExpiredException.java 1.18 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 user account has expired.
12  *
13  * <p> This exception is thrown by LoginModules when they determine
14  * that an account has expired. For example, a <code>LoginModule</code>,
15  * after successfully authenticating a user, may determine that the
16  * user's account has expired. In this case the <code>LoginModule</code>
17  * throws this exception to notify the application. The application can
18  * then take the appropriate steps to notify the user.
19  *
20  * @version 1.18, 12/19/03
21  */

22 public class AccountExpiredException extends AccountException JavaDoc {
23
24     private static final long serialVersionUID = -6064064890162661560L;
25
26     /**
27      * Constructs a AccountExpiredException with no detail message. A detail
28      * message is a String that describes this particular exception.
29      */

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

43     public AccountExpiredException(String JavaDoc msg) {
44     super(msg);
45     }
46 }
47
Popular Tags