Record Class ParameterSetDescriptor.Concrete<S extends AlgorithmKeySpec>

java.lang.Object
java.lang.Record
zeroecho.core.ParameterSetDescriptor.Concrete<S>
Type Parameters:
S - the AlgorithmKeySpec type
Record Components:
id - nonblank machine identifier
displayName - nonblank display label
securityLevel - security estimate
spec - ready-to-use specification
All Implemented Interfaces:
ParameterSetDescriptor<S>
Enclosing interface:
ParameterSetDescriptor<S extends AlgorithmKeySpec>

public static record ParameterSetDescriptor.Concrete<S extends AlgorithmKeySpec>(String id, String displayName, SecurityLevel securityLevel, S extends AlgorithmKeySpec spec) extends Record implements ParameterSetDescriptor<S>
A fully pre-built, named parameter set carrying a ready-to-use spec.

Use this variant when the parameter space is finite and enumerable (e.g., ML-KEM-512/768/1024, AES-128/192/256).

Since:
1.0
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Specified by:
      id in interface ParameterSetDescriptor<S extends AlgorithmKeySpec>
      Returns:
      the value of the id record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Specified by:
      displayName in interface ParameterSetDescriptor<S extends AlgorithmKeySpec>
      Returns:
      the value of the displayName record component
    • securityLevel

      public SecurityLevel securityLevel()
      Returns the value of the securityLevel record component.
      Specified by:
      securityLevel in interface ParameterSetDescriptor<S extends AlgorithmKeySpec>
      Returns:
      the value of the securityLevel record component
    • spec

      public S spec()
      Returns the value of the spec record component.
      Returns:
      the value of the spec record component