mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8210755: Define standard names for EC curves and TLS signature schemes
Reviewed-by: xuelei
This commit is contained in:
parent
7c0a5865fb
commit
22cb2d8b5b
2 changed files with 16 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -45,9 +45,12 @@ public class ECGenParameterSpec extends NamedParameterSpec {
|
|||
* of the provider whose implementation will be used.
|
||||
*
|
||||
* @param stdName the standard name of the to-be-generated EC
|
||||
* domain parameters.
|
||||
* @throws NullPointerException if {@code stdName}
|
||||
* is null.
|
||||
* domain parameters. See the ParameterSpec Names section in the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* Java Security Standard Algorithm Names Specification</a> for
|
||||
* information about standard names.
|
||||
* @throws NullPointerException if {@code stdName} is null.
|
||||
*/
|
||||
public ECGenParameterSpec(String stdName) {
|
||||
super(stdName);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019 Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -33,7 +33,7 @@ import java.util.Objects;
|
|||
* parameter set name. For example, NamedParameterSpec.X25519 represents the
|
||||
* parameter set identified by the string "X25519". These strings are defined
|
||||
* in the <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameter-spec-names">
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* Java Security Standard Algorithm Names Specification</a>.
|
||||
*
|
||||
* @since 11
|
||||
|
@ -60,10 +60,14 @@ public class NamedParameterSpec implements AlgorithmParameterSpec {
|
|||
* list of supported names, please consult the documentation
|
||||
* of the provider whose implementation will be used.
|
||||
*
|
||||
* @param stdName the standard name of the algorithm parameters
|
||||
* @param stdName the standard name of the algorithm parameters. See the
|
||||
* ParameterSpec Names section in the
|
||||
* <a href=
|
||||
* "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
|
||||
* Java Security Standard Algorithm Names Specification</a> for
|
||||
* information about standard names.
|
||||
*
|
||||
* @throws NullPointerException if {@code stdName}
|
||||
* is null.
|
||||
* @throws NullPointerException if {@code stdName} is null.
|
||||
*/
|
||||
public NamedParameterSpec(String stdName) {
|
||||
Objects.requireNonNull(stdName, "stdName must not be null");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue