KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > cert > CertificateException


1 /*
2  * @(#)CertificateException.java 1.33 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.cert;
9
10 import java.security.GeneralSecurityException JavaDoc;
11
12 /**
13  * This exception indicates one of a variety of certificate problems.
14  *
15  * @author Hemma Prafullchandra
16  * @version 1.33
17  * @see Certificate
18  */

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

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

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

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

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