mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8305406: Add @spec tags in java.base/java.* (part 2)
Co-authored-by: Daniel Jeliński <djelinski@openjdk.org> Co-authored-by: Hannes Wallnöfer <hannesw@openjdk.org> Reviewed-by: valeriep
This commit is contained in:
parent
1476f6c475
commit
873f8a696f
59 changed files with 311 additions and 51 deletions
|
@ -137,6 +137,8 @@ public class EncryptedPrivateKeyInfo {
|
|||
* is empty, i.e. 0-length.
|
||||
* @exception NoSuchAlgorithmException if the specified algName is
|
||||
* not supported.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
*/
|
||||
public EncryptedPrivateKeyInfo(String algName, byte[] encryptedData)
|
||||
throws NoSuchAlgorithmException {
|
||||
|
@ -226,6 +228,8 @@ public class EncryptedPrivateKeyInfo {
|
|||
* for information about standard Cipher algorithm names.
|
||||
*
|
||||
* @return the encryption algorithm name.
|
||||
*
|
||||
* @spec security/standard-names.html Java Security Standard Algorithm Names
|
||||
*/
|
||||
public String getAlgName() {
|
||||
return algid == null ? params.getAlgorithm() : algid.getName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue