1 |
/* InvalidKeySpecException.java --- Invalid KeySpec Exception |
/* InvalidKeySpecException.java -- invalid KeySpec Exception |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
37 |
|
|
38 |
|
|
39 |
package java.security.spec; |
package java.security.spec; |
40 |
|
|
41 |
import java.security.GeneralSecurityException; |
import java.security.GeneralSecurityException; |
42 |
|
|
43 |
/** |
/** |
44 |
Exception for an invalid key specification. |
* Exception for an invalid key specification. |
45 |
|
* |
46 |
@since JDK 1.2 |
* @author Mark Benvenuto |
47 |
|
* @see KeySpec |
48 |
@author Mark Benvenuto |
* @since 1.2 |
49 |
*/ |
* @status updated to 1.4 |
50 |
public class InvalidKeySpecException extends GeneralSecurityException |
*/ |
51 |
|
public class InvalidKeySpecException extends GeneralSecurityException |
52 |
{ |
{ |
53 |
|
/** |
54 |
|
* Compatible with JDK 1.2+. |
55 |
|
*/ |
56 |
|
private static final long serialVersionUID = 3546139293998810778L; |
57 |
|
|
58 |
/** |
/** |
59 |
Constructs an InvalidKeySpecException without a message string. |
* Constructs an InvalidKeySpecException without a message string. |
60 |
*/ |
*/ |
61 |
public InvalidKeySpecException() |
public InvalidKeySpecException() |
62 |
{ |
{ |
|
super(); |
|
63 |
} |
} |
64 |
|
|
65 |
/** |
/** |
66 |
Constructs an InvalidKeySpecException with a message string. |
* Constructs an InvalidKeySpecException with a message string. |
67 |
|
* |
68 |
@param msg A message to display with exception |
* @param msg a message to display with exception |
69 |
*/ |
*/ |
70 |
public InvalidKeySpecException(String msg) |
public InvalidKeySpecException(String msg) |
71 |
{ |
{ |
72 |
super( msg ); |
super(msg); |
73 |
} |
} |
|
|
|
74 |
} |
} |