Record Class KeyOperationInfo
java.lang.Object
java.lang.Record
zeroecho.core.KeyOperationInfo
- Record Components:
operation- operation guaranteed by the associated lookupspecType- exact accepted specification typedefaultSpec- resolved generation default, ornullfor import operations and generators without a default
public record KeyOperationInfo(KeyOperation operation, Class<? extends AlgorithmKeySpec> specType, AlgorithmKeySpec defaultSpec)
extends Record
Immutable metadata for one exact key operation.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionKeyOperationInfo(KeyOperation operation, Class<? extends AlgorithmKeySpec> specType, AlgorithmKeySpec defaultSpec) Validates the metadata invariant. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultSpecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationrecord component.Class<? extends AlgorithmKeySpec> specType()Returns the value of thespecTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyOperationInfo
public KeyOperationInfo(KeyOperation operation, Class<? extends AlgorithmKeySpec> specType, AlgorithmKeySpec defaultSpec) Validates the metadata invariant.- Throws:
NullPointerException- ifoperationorspecTypeisnullIllegalArgumentException- if a default is incompatible withspecType, or an import operation declares a default
-
-
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). -
operation
-
specType
-
defaultSpec
Returns the value of thedefaultSpecrecord component.- Returns:
- the value of the
defaultSpecrecord component
-