Class NamedParameterSpec

java.lang.Object
java.security.spec.NamedParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec
Direct Known Subclasses:
ECGenParameterSpec

public class NamedParameterSpec extends Object implements AlgorithmParameterSpec
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
External Specifications
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NamedParameterSpec
    The Ed25519 parameters
    static final NamedParameterSpec
    The Ed448 parameters
    static final NamedParameterSpec
    The ML-DSA-44 parameters
    static final NamedParameterSpec
    The ML-DSA-65 parameters
    static final NamedParameterSpec
    The ML-DSA-87 parameters
    static final NamedParameterSpec
    The ML-KEM-1024 parameters
    static final NamedParameterSpec
    The ML-KEM-512 parameters
    static final NamedParameterSpec
    The ML-KEM-768 parameters
    static final NamedParameterSpec
    The X25519 parameters
    static final NamedParameterSpec
    The X448 parameters
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a parameter specification using a standard (or predefined) name stdName.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the standard name that determines the algorithm parameters.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
    Creates and returns a copy of this object.
    boolean
    Indicates whether some other object is "equal to" this one.
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Finalization is deprecated and subject to removal in a future release.
    final Class<?>
    Returns the runtime class of this Object.
    int
    Returns a hash code value for this object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    Returns a string representation of the object.
    final void
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
    final void
    wait(long timeoutMillis)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
    final void
    wait(long timeoutMillis, int nanos)
    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
  • Field Details

    • X25519

      public static final NamedParameterSpec X25519
      The X25519 parameters
    • X448

      public static final NamedParameterSpec X448
      The X448 parameters
    • ED25519

      public static final NamedParameterSpec ED25519
      The Ed25519 parameters
      Since:
      15
    • ED448

      public static final NamedParameterSpec ED448
      The Ed448 parameters
      Since:
      15
    • ML_DSA_44

      public static final NamedParameterSpec ML_DSA_44
      The ML-DSA-44 parameters
      Since:
      24
    • ML_DSA_65

      public static final NamedParameterSpec ML_DSA_65
      The ML-DSA-65 parameters
      Since:
      24
    • ML_DSA_87

      public static final NamedParameterSpec ML_DSA_87
      The ML-DSA-87 parameters
      Since:
      24
    • ML_KEM_512

      public static final NamedParameterSpec ML_KEM_512
      The ML-KEM-512 parameters
      Since:
      24
    • ML_KEM_768

      public static final NamedParameterSpec ML_KEM_768
      The ML-KEM-768 parameters
      Since:
      24
    • ML_KEM_1024

      public static final NamedParameterSpec ML_KEM_1024
      The ML-KEM-1024 parameters
      Since:
      24
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Returns the standard name that determines the algorithm parameters.
      Returns:
      the standard name.