equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
24 */ |
24 */ |
25 |
25 |
26 package java.security.interfaces; |
26 package java.security.interfaces; |
27 |
27 |
28 import java.math.BigInteger; |
28 import java.math.BigInteger; |
|
29 import java.security.spec.AlgorithmParameterSpec; |
29 |
30 |
30 /** |
31 /** |
31 * The interface to an RSA public or private key. |
32 * The interface to a public or private key in |
|
33 * <a href="https://tools.ietf.org/rfc/rfc8017.txt">PKCS#1 v2.2</a> standard, |
|
34 * such as those for RSA, or RSASSA-PSS algorithms. |
32 * |
35 * |
33 * @author Jan Luehe |
36 * @author Jan Luehe |
34 * |
37 * |
35 * @see RSAPublicKey |
38 * @see RSAPublicKey |
36 * @see RSAPrivateKey |
39 * @see RSAPrivateKey |
44 * Returns the modulus. |
47 * Returns the modulus. |
45 * |
48 * |
46 * @return the modulus |
49 * @return the modulus |
47 */ |
50 */ |
48 public BigInteger getModulus(); |
51 public BigInteger getModulus(); |
|
52 |
|
53 /** |
|
54 * Returns the parameters associated with this key. |
|
55 * The parameters are optional and may be either |
|
56 * explicitly specified or implicitly created during |
|
57 * key pair generation. |
|
58 * |
|
59 * @implSpec |
|
60 * The default implementation returns {@code null}. |
|
61 * |
|
62 * @return the associated parameters, may be null |
|
63 * @since 11 |
|
64 */ |
|
65 default AlgorithmParameterSpec getParams() { |
|
66 return null; |
|
67 } |
49 } |
68 } |