Record Class ParameterSetDescriptor.Concrete<S extends AlgorithmKeySpec>
java.lang.Object
java.lang.Record
zeroecho.core.ParameterSetDescriptor.Concrete<S>
- Type Parameters:
S- theAlgorithmKeySpectype- Record Components:
id- nonblank machine identifierdisplayName- nonblank display labelsecurityLevel- security estimatespec- 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
-
Nested Class Summary
Nested classes/interfaces inherited from interface ParameterSetDescriptor
ParameterSetDescriptor.Concrete<S>, ParameterSetDescriptor.Template<S> -
Constructor Summary
ConstructorsConstructorDescriptionConcrete(String id, String displayName, SecurityLevel securityLevel, S spec) Validates a concrete descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thesecurityLevelrecord component.spec()Returns the value of thespecrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Concrete
Validates a concrete descriptor.- Throws:
NullPointerException- if any field isnullIllegalArgumentException- if the identifier or label is blank
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceParameterSetDescriptor<S extends AlgorithmKeySpec>- Returns:
- the value of the
idrecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Specified by:
displayNamein interfaceParameterSetDescriptor<S extends AlgorithmKeySpec>- Returns:
- the value of the
displayNamerecord component
-
securityLevel
Returns the value of thesecurityLevelrecord component.- Specified by:
securityLevelin interfaceParameterSetDescriptor<S extends AlgorithmKeySpec>- Returns:
- the value of the
securityLevelrecord component
-
spec
-