KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > crypto > io > raes > RaesKeyException


1 /*
2  * Copyright 2005-2006 Schlichtherle IT Services
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package de.schlichtherle.crypto.io.raes;
18
19 /**
20  * Thrown to indicate that retrieving a key to encrypt some pay load data to
21  * an RAES file has been disabled or cancelled.
22  *
23  * @author Christian Schlichtherle
24  * @version @version@
25  * @since TrueZIP 6.0
26  */

27 public class RaesKeyException extends RaesParametersException {
28
29     /**
30      * Creates a new instance of <code>RaesKeyException</code> with a
31      * detail message indicating that key retrieval has been disabled
32      * or cancelled.
33      */

34     public RaesKeyException() {
35         super("Key retrieval has been disabled or cancelled!");
36     }
37     
38     /**
39      * Constructs an instance of <code>RaesKeyException</code> with the
40      * specified detail message.
41      *
42      * @param msg The detail message.
43      */

44     public RaesKeyException(String JavaDoc msg) {
45         super(msg);
46     }
47
48     /**
49      * Constructs an instance of <code>RaesKeyException</code> with the
50      * specified cause.
51      *
52      * @param cause The cause.
53      */

54     public RaesKeyException(Throwable JavaDoc cause) {
55         super(cause);
56     }
57 }
58
Popular Tags