author | wetmore |
Wed, 13 Apr 2011 11:59:18 -0700 | |
changeset 9265 | 62d885310f4d |
permissions | -rw-r--r-- |
9265
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
1 |
/* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
2 |
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
4 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
10 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
15 |
* accompanied this code). |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
16 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
20 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
23 |
* questions. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
24 |
*/ |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
25 |
|
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
26 |
package javax.crypto; |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
27 |
|
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
28 |
/** |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
29 |
* This exception is thrown when a {@link Cipher} operating in |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
30 |
* an AEAD mode (such as GCM/CCM) is unable to verify the supplied |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
31 |
* authentication tag. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
32 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
33 |
* @since 1.7 |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
34 |
*/ |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
35 |
public class AEADBadTagException extends BadPaddingException { |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
36 |
|
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
37 |
private static final long serialVersionUID = -488059093241685509L; |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
38 |
|
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
39 |
/** |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
40 |
* Constructs a AEADBadTagException with no detail message. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
41 |
*/ |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
42 |
public AEADBadTagException() { |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
43 |
super(); |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
44 |
} |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
45 |
|
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
46 |
/** |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
47 |
* Constructs a AEADBadTagException with the specified |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
48 |
* detail message. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
49 |
* |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
50 |
* @param msg the detail message. |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
51 |
*/ |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
52 |
public AEADBadTagException(String msg) { |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
53 |
super(msg); |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
54 |
} |
62d885310f4d
7031343: Provide API changes to support future GCM AEAD ciphers
wetmore
parents:
diff
changeset
|
55 |
} |