KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > InvalidAlgorithmParameterException


1 /*
2  * @(#)InvalidAlgorithmParameterException.java 1.14 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;
9
10 /**
11  * This is the exception for invalid or inappropriate algorithm parameters.
12  *
13  * @author Jan Luehe
14  *
15  * @version 1.14, 12/19/03
16  *
17  * @see AlgorithmParameters
18  * @see java.security.spec.AlgorithmParameterSpec
19  *
20  * @since 1.2
21  */

22
23 public class InvalidAlgorithmParameterException
24 extends GeneralSecurityException JavaDoc {
25
26     private static final long serialVersionUID = 2864672297499471472L;
27
28     /**
29      * Constructs an InvalidAlgorithmParameterException with no detail
30      * message.
31      * A detail message is a String that describes this particular
32      * exception.
33      */

34     public InvalidAlgorithmParameterException() {
35     super();
36     }
37
38     /**
39      * Constructs an InvalidAlgorithmParameterException with the specified
40      * detail message.
41      * A detail message is a String that describes this
42      * particular exception.
43      *
44      * @param msg the detail message.
45      */

46     public InvalidAlgorithmParameterException(String JavaDoc msg) {
47     super(msg);
48     }
49
50     /**
51      * Creates a <code>InvalidAlgorithmParameterException</code> with the
52      * specified detail message and cause.
53      *
54      * @param message the detail message (which is saved for later retrieval
55      * by the {@link #getMessage()} method).
56      * @param cause the cause (which is saved for later retrieval by the
57      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
58      * and indicates that the cause is nonexistent or unknown.)
59      * @since 1.5
60      */

61     public InvalidAlgorithmParameterException(String JavaDoc message, Throwable JavaDoc cause) {
62         super(message, cause);
63     }
64
65     /**
66      * Creates a <code>InvalidAlgorithmParameterException</code> with the
67      * specified cause and a detail message of
68      * <tt>(cause==null ? null : cause.toString())</tt>
69      * (which typically contains the class and detail message of
70      * <tt>cause</tt>).
71      *
72      * @param cause the cause (which is saved for later retrieval by the
73      * {@link #getCause()} method). (A <tt>null</tt> value is permitted,
74      * and indicates that the cause is nonexistent or unknown.)
75      * @since 1.5
76      */

77     public InvalidAlgorithmParameterException(Throwable JavaDoc cause) {
78         super(cause);
79     }
80 }
81
Popular Tags