-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRSAKey.java
More file actions
68 lines (62 loc) · 1.16 KB
/
Copy pathRSAKey.java
File metadata and controls
68 lines (62 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.security.interfaces;
import java.math.BigInteger;
import java.security.spec.AlgorithmParameterSpec;
/**
* The interface to a public or private key in
* <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard,
* such as those for RSA, or RSASSA-PSS algorithms.
*
* @author Jan Luehe
*
* @see RSAPublicKey
* @see RSAPrivateKey
*
* @since 1.3
*/
public interface RSAKey {
/**
* Returns the modulus.
*
* @return the modulus
*/
public BigInteger getModulus();
/**
* Returns the parameters associated with this key.
* The parameters are optional and may be either
* explicitly specified or implicitly created during
* key pair generation.
*
* @implSpec
* The default implementation returns {@code null}.
*
* @return the associated parameters, may be null
* @since 8
*/
default AlgorithmParameterSpec getParams() {
return null;
}
}