KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > InvalidKeyException


1 /*
2  * @(#)InvalidKeyException.java 1.16 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
9 package java.security;
10
11 /**
12  * This is the exception for invalid Keys (invalid encoding, wrong
13  * length, uninitialized, etc).
14  *
15  * @version 1.16, 12/19/03
16  * @author Benjamin Renaud
17  */

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

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

39     public InvalidKeyException(String JavaDoc msg) {
40     super(msg);
41     }
42
43     /**
44      * Creates a <code>InvalidKeyException</code> with the specified
45      * detail message and cause.
46      *
47      * @param message the detail message (which is saved for later retrieval
48      * by the {@link #getMessage()} method).
49      * @param cause the cause (which is saved for later retrieval by the
50      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
51      * and indicates that the cause is nonexistent or unknown.)
52      * @since 1.5
53      */

54     public InvalidKeyException(String JavaDoc message, Throwable JavaDoc cause) {
55         super(message, cause);
56     }
57
58     /**
59      * Creates a <code>InvalidKeyException</code> with the specified cause
60      * and a detail message of <tt>(cause==null ? null : cause.toString())</tt>
61      * (which typically contains the class and detail message of
62      * <tt>cause</tt>).
63      *
64      * @param cause the cause (which is saved for later retrieval by the
65      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
66      * and indicates that the cause is nonexistent or unknown.)
67      * @since 1.5
68      */

69     public InvalidKeyException(Throwable JavaDoc cause) {
70         super(cause);
71     }
72 }
73
Popular Tags