8210755: Define standard names for EC curves and TLS signature schemes
Reviewed-by: xuelei
--- a/src/java.base/share/classes/java/security/spec/ECGenParameterSpec.java Tue Aug 06 07:43:18 2019 -0400
+++ b/src/java.base/share/classes/java/security/spec/ECGenParameterSpec.java Tue Aug 06 09:27:38 2019 -0400
@@ -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 @@
* 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);
--- a/src/java.base/share/classes/java/security/spec/NamedParameterSpec.java Tue Aug 06 07:43:18 2019 -0400
+++ b/src/java.base/share/classes/java/security/spec/NamedParameterSpec.java Tue Aug 06 09:27:38 2019 -0400
@@ -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 @@
* 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 @@
* 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");