KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > KeyManagementException


1 /*
2  * @(#)KeyManagementException.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 java.security;
9
10 /**
11  * This is the general key management exception for all operations
12  * dealing with key management. Examples of subclasses of
13  * KeyManagementException that developers might create for
14  * giving more detailed information could include:
15  *
16  * <ul>
17  * <li>KeyIDConflictException
18  * <li>KeyAuthorizationFailureException
19  * <li>ExpiredKeyException
20  * </ul>
21  *
22  * @version 1.18 03/12/19
23  * @author Benjamin Renaud
24  *
25  * @see Key
26  * @see KeyException
27  */

28
29 public class KeyManagementException extends KeyException JavaDoc {
30
31     private static final long serialVersionUID = 947674216157062695L;
32
33     /**
34      * Constructs a KeyManagementException with no detail message. A
35      * detail message is a String that describes this particular
36      * exception.
37      */

38     public KeyManagementException() {
39     super();
40     }
41
42      /**
43      * Constructs a KeyManagementException with the specified detail
44      * message. A detail message is a String that describes this
45      * particular exception.
46      *
47      * @param msg the detail message.
48      */

49    public KeyManagementException(String JavaDoc msg) {
50     super(msg);
51     }
52
53     /**
54      * Creates a <code>KeyManagementException</code> with the specified
55      * detail message and cause.
56      *
57      * @param message the detail message (which is saved for later retrieval
58      * by the {@link #getMessage()} method).
59      * @param cause the cause (which is saved for later retrieval by the
60      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
61      * and indicates that the cause is nonexistent or unknown.)
62      * @since 1.5
63      */

64     public KeyManagementException(String JavaDoc message, Throwable JavaDoc cause) {
65         super(message, cause);
66     }
67
68     /**
69      * Creates a <code>KeyManagementException</code> with the specified cause
70      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
71      * (which typically contains the class and detail message of
72      * <tt>cause</tt>).
73      *
74      * @param cause the cause (which is saved for later retrieval by the
75      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
76      * and indicates that the cause is nonexistent or unknown.)
77      * @since 1.5
78      */

79     public KeyManagementException(Throwable JavaDoc cause) {
80         super(cause);
81     }
82 }
83
Popular Tags