src/java.base/share/classes/java/security/spec/NamedParameterSpec.java
changeset 57655 a95e92c449bf
parent 50053 9bc1e6487cbb
equal deleted inserted replaced
57654:dd0f6703203f 57655:a95e92c449bf
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 2019 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
    31  * by a standard name. This class also holds constants for standard parameter
    31  * by a standard name. This class also holds constants for standard parameter
    32  * set names. The names of these constants exactly match the corresponding
    32  * set names. The names of these constants exactly match the corresponding
    33  * parameter set name. For example, NamedParameterSpec.X25519 represents the
    33  * parameter set name. For example, NamedParameterSpec.X25519 represents the
    34  * parameter set identified by the string "X25519". These strings are defined
    34  * parameter set identified by the string "X25519". These strings are defined
    35  * in the <a href=
    35  * in the <a href=
    36  * "{@docRoot}/../specs/security/standard-names.html#parameter-spec-names">
    36  * "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
    37  *          Java Security Standard Algorithm Names Specification</a>.
    37  *          Java Security Standard Algorithm Names Specification</a>.
    38  *
    38  *
    39  * @since 11
    39  * @since 11
    40  *
    40  *
    41  */
    41  */
    58      * Creates a parameter specification using a standard (or predefined)
    58      * Creates a parameter specification using a standard (or predefined)
    59      * name {@code stdName}. For the
    59      * name {@code stdName}. For the
    60      * list of supported names, please consult the documentation
    60      * list of supported names, please consult the documentation
    61      * of the provider whose implementation will be used.
    61      * of the provider whose implementation will be used.
    62      *
    62      *
    63      * @param stdName the standard name of the algorithm parameters
    63      * @param stdName the standard name of the algorithm parameters. See the
       
    64      *        ParameterSpec Names section in the
       
    65      *        <a href=
       
    66      *        "{@docRoot}/../specs/security/standard-names.html#parameterspec-names">
       
    67      *        Java Security Standard Algorithm Names Specification</a> for
       
    68      *        information about standard names.
    64      *
    69      *
    65      * @throws NullPointerException if {@code stdName}
    70      * @throws NullPointerException if {@code stdName} is null.
    66      * is null.
       
    67      */
    71      */
    68     public NamedParameterSpec(String stdName) {
    72     public NamedParameterSpec(String stdName) {
    69         Objects.requireNonNull(stdName, "stdName must not be null");
    73         Objects.requireNonNull(stdName, "stdName must not be null");
    70 
    74 
    71         this.name = stdName;
    75         this.name = stdName;