KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)CertificateParsingException.java 1.12 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 /**
11  * Certificate Parsing Exception. This is thrown whenever an
12  * invalid DER-encoded certificate is parsed or unsupported DER features
13  * are found in the Certificate.
14  *
15  * @author Hemma Prafullchandra
16  * 1.12
17  */

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

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

38     public CertificateParsingException(String JavaDoc message) {
39         super(message);
40     }
41
42     /**
43      * Creates a <code>CertificateParsingException</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 CertificateParsingException(String JavaDoc message, Throwable JavaDoc cause) {
54         super(message, cause);
55     }
56
57     /**
58      * Creates a <code>CertificateParsingException</code> with the
59      * specified cause and a detail message of
60      * <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 CertificateParsingException(Throwable JavaDoc cause) {
70         super(cause);
71     }
72 }
73
Popular Tags