KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)CertificateEncodingException.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 Encoding Exception. This is thrown whenever an error
12  * occurs while attempting to encode a certificate.
13  *
14  * @author Hemma Prafullchandra
15  * 1.12
16  */

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

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

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

52     public CertificateEncodingException(String JavaDoc message, Throwable JavaDoc cause) {
53         super(message, cause);
54     }
55
56     /**
57      * Creates a <code>CertificateEncodingException</code>
58      * with the specified cause and a detail message of
59      * <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 CertificateEncodingException(Throwable JavaDoc cause) {
69         super(cause);
70     }
71 }
72
Popular Tags