KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)CertStoreException.java 1.7 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  * An exception indicating one of a variety of problems retrieving
14  * certificates and CRLs from a <code>CertStore</code>.
15  * <p>
16  * A <code>CertStoreException</code> provides support for wrapping
17  * exceptions. The {@link #getCause getCause} method returns the throwable,
18  * if any, that caused this exception to be thrown.
19  * <p>
20  * <b>Concurrent Access</b>
21  * <p>
22  * Unless otherwise specified, the methods defined in this class are not
23  * thread-safe. Multiple threads that need to access a single
24  * object concurrently should synchronize amongst themselves and
25  * provide the necessary locking. Multiple threads each manipulating
26  * separate objects need not synchronize.
27  *
28  * @see CertStore
29  *
30  * @version 1.7 12/19/03
31  * @since 1.4
32  * @author Sean Mullan
33  */

34 public class CertStoreException extends GeneralSecurityException JavaDoc {
35
36     private static final long serialVersionUID = 2395296107471573245L;
37
38     /**
39      * Creates a <code>CertStoreException</code> with <code>null</code> as
40      * its detail message.
41      */

42     public CertStoreException() {
43         super();
44     }
45
46     /**
47      * Creates a <code>CertStoreException</code> with the given detail
48      * message. A detail message is a <code>String</code> that describes this
49      * particular exception.
50      *
51      * @param msg the detail message
52      */

53     public CertStoreException(String JavaDoc msg) {
54         super(msg);
55     }
56
57     /**
58      * Creates a <code>CertStoreException</code> that wraps the specified
59      * throwable. This allows any exception to be converted into a
60      * <code>CertStoreException</code>, while retaining information about the
61      * cause, which may be useful for debugging. The detail message is
62      * set to (<code>cause==null ? null : cause.toString()</code>) (which
63      * typically contains the class and detail message of cause).
64      *
65      * @param cause the cause (which is saved for later retrieval by the
66      * {@link #getCause getCause()} method). (A <code>null</code> value is
67      * permitted, and indicates that the cause is nonexistent or unknown.)
68      */

69     public CertStoreException(Throwable JavaDoc cause) {
70         super(cause);
71     }
72
73     /**
74      * Creates a <code>CertStoreException</code> with the specified detail
75      * message and cause.
76      *
77      * @param msg the detail message
78      * @param cause the cause (which is saved for later retrieval by the
79      * {@link #getCause getCause()} method). (A <code>null</code> value is
80      * permitted, and indicates that the cause is nonexistent or unknown.)
81      */

82     public CertStoreException(String JavaDoc msg, Throwable JavaDoc cause) {
83         super(msg, cause);
84     }
85
86 }
87
Popular Tags