author | darcy |
Fri, 17 Aug 2018 13:37:01 -0700 | |
changeset 51437 | 6221a199ec20 |
parent 51317 | e122220d7d7e |
child 57950 | 4612a3cfb927 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
50204
3195a713e24d
8146293: Add support for RSASSA-PSS Signature algorithm
valeriep
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package java.security.interfaces; |
|
27 |
||
28 |
import java.math.BigInteger; |
|
29 |
import java.security.spec.RSAOtherPrimeInfo; |
|
30 |
||
31 |
/** |
|
32 |
* The interface to an RSA multi-prime private key, as defined in the |
|
50204
3195a713e24d
8146293: Add support for RSASSA-PSS Signature algorithm
valeriep
parents:
47216
diff
changeset
|
33 |
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard, |
3195a713e24d
8146293: Add support for RSASSA-PSS Signature algorithm
valeriep
parents:
47216
diff
changeset
|
34 |
* using the <i>Chinese Remainder Theorem</i> (CRT) information values. |
2 | 35 |
* |
36 |
* @author Valerie Peng |
|
37 |
* |
|
38 |
* |
|
39 |
* @see java.security.spec.RSAPrivateKeySpec |
|
40 |
* @see java.security.spec.RSAMultiPrimePrivateCrtKeySpec |
|
41 |
* @see RSAPrivateKey |
|
42 |
* @see RSAPrivateCrtKey |
|
43 |
* |
|
44 |
* @since 1.4 |
|
45 |
*/ |
|
46 |
||
47 |
public interface RSAMultiPrimePrivateCrtKey extends RSAPrivateKey { |
|
48 |
||
19828 | 49 |
/** |
50 |
* The type fingerprint that is set to indicate |
|
51 |
* serialization compatibility with a previous |
|
52 |
* version of the type. |
|
51437
6221a199ec20
8209304: Deprecate serialVersionUID fields in interfaces
darcy
parents:
51317
diff
changeset
|
53 |
* |
6221a199ec20
8209304: Deprecate serialVersionUID fields in interfaces
darcy
parents:
51317
diff
changeset
|
54 |
* @deprecated A {@code serialVersionUID} field in an interface is |
6221a199ec20
8209304: Deprecate serialVersionUID fields in interfaces
darcy
parents:
51317
diff
changeset
|
55 |
* ineffectual. Do not use; no replacement. |
19828 | 56 |
*/ |
51437
6221a199ec20
8209304: Deprecate serialVersionUID fields in interfaces
darcy
parents:
51317
diff
changeset
|
57 |
@Deprecated |
6221a199ec20
8209304: Deprecate serialVersionUID fields in interfaces
darcy
parents:
51317
diff
changeset
|
58 |
@SuppressWarnings("serial") |
2 | 59 |
static final long serialVersionUID = 618058533534628008L; |
60 |
||
61 |
/** |
|
62 |
* Returns the public exponent. |
|
63 |
* |
|
64 |
* @return the public exponent. |
|
65 |
*/ |
|
66 |
public BigInteger getPublicExponent(); |
|
67 |
||
68 |
/** |
|
69 |
* Returns the primeP. |
|
70 |
* |
|
71 |
* @return the primeP. |
|
72 |
*/ |
|
73 |
public BigInteger getPrimeP(); |
|
74 |
||
75 |
/** |
|
76 |
* Returns the primeQ. |
|
77 |
* |
|
78 |
* @return the primeQ. |
|
79 |
*/ |
|
80 |
public BigInteger getPrimeQ(); |
|
81 |
||
82 |
/** |
|
83 |
* Returns the primeExponentP. |
|
84 |
* |
|
85 |
* @return the primeExponentP. |
|
86 |
*/ |
|
87 |
public BigInteger getPrimeExponentP(); |
|
88 |
||
89 |
/** |
|
90 |
* Returns the primeExponentQ. |
|
91 |
* |
|
92 |
* @return the primeExponentQ. |
|
93 |
*/ |
|
94 |
public BigInteger getPrimeExponentQ(); |
|
95 |
||
96 |
/** |
|
97 |
* Returns the crtCoefficient. |
|
98 |
* |
|
99 |
* @return the crtCoefficient. |
|
100 |
*/ |
|
101 |
public BigInteger getCrtCoefficient(); |
|
102 |
||
103 |
/** |
|
104 |
* Returns the otherPrimeInfo or null if there are only |
|
105 |
* two prime factors (p and q). |
|
106 |
* |
|
107 |
* @return the otherPrimeInfo. |
|
108 |
*/ |
|
109 |
public RSAOtherPrimeInfo[] getOtherPrimeInfo(); |
|
110 |
} |