Top Description Fields Constructors Methods
java.security.spec

public Class NamedParameterSpec

extends Object
implements AlgorithmParameterSpec
Class Inheritance
All Implemented Interfaces
java.security.spec.AlgorithmParameterSpec
Known Direct Subclasses
java.security.spec.ECGenParameterSpec
Imports
java.util.Objects

This class is used to specify any algorithm parameters that are determined by a standard name. This class also holds constants for standard parameter set names. The names of these constants exactly match the corresponding parameter set name. For example, NamedParameterSpec.X25519 represents the parameter set identified by the string "X25519". These strings are defined in the Java Security Standard Algorithm Names Specification.
Since
11

Field Summary

Modifier and TypeField and Description
public static final NamedParameterSpec
ED25519

The Ed25519 parameters

public static final NamedParameterSpec
ED448

The Ed448 parameters

private final String
public static final NamedParameterSpec
X25519

The X25519 parameters

public static final NamedParameterSpec
X448

The X448 parameters

Constructor Summary

AccessConstructor and Description
public
NamedParameterSpec(String
the standard name of the algorithm parameters. See the ParameterSpec Names section in the Java Security Standard Algorithm Names Specification for information about standard names.
stdName
)

Creates a parameter specification using a standard (or predefined) name stdName.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the standard name.
getName
()

Returns the standard name that determines the algorithm parameters.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ED25519back to summary
public static final NamedParameterSpec ED25519

The Ed25519 parameters

Since
15
ED448back to summary
public static final NamedParameterSpec ED448

The Ed448 parameters

Since
15
nameback to summary
private final String name
X25519back to summary
public static final NamedParameterSpec X25519

The X25519 parameters

X448back to summary
public static final NamedParameterSpec X448

The X448 parameters

Constructor Detail

NamedParameterSpecback to summary
public NamedParameterSpec(String stdName)

Creates a parameter specification using a standard (or predefined) name stdName. For the list of supported names, please consult the documentation of the provider whose implementation will be used.

Parameters
stdName:String

the standard name of the algorithm parameters. See the ParameterSpec Names section in the Java Security Standard Algorithm Names Specification for information about standard names.

Exceptions
NullPointerException:
if stdName is null.

Method Detail

getNameback to summary
public String getName()

Returns the standard name that determines the algorithm parameters.

Returns:String

the standard name.