Record Class AlgorithmIdentity.DigestParameters
java.lang.Object
java.lang.Record
zeroecho.core.spec.AlgorithmIdentity.DigestParameters
- Record Components:
digest- exact digest identity
- All Implemented Interfaces:
AlgorithmIdentity.Parameters
- Enclosing class:
AlgorithmIdentity
public static record AlgorithmIdentity.DigestParameters(AlgorithmIdentity digest)
extends Record
implements AlgorithmIdentity.Parameters
Digest-qualified signature parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionDigestParameters(AlgorithmIdentity digest) Creates digest-qualified parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the deterministic parameter representation.digest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns an independently owned immutable copy.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DigestParameters
Creates digest-qualified parameters.- Throws:
IllegalArgumentException- ifdigestis not a digest identity
-
-
Method Details
-
canonicalForm
Description copied from interface:AlgorithmIdentity.ParametersReturns the deterministic parameter representation.- Specified by:
canonicalFormin interfaceAlgorithmIdentity.Parameters- Returns:
- non-blank lowercase canonical component
-
immutableCopy
Description copied from interface:AlgorithmIdentity.ParametersReturns an independently owned immutable copy.Trusted extension implementations must not return mutable caller-owned state. Immutable records may return
this.- Specified by:
immutableCopyin interfaceAlgorithmIdentity.Parameters- Returns:
- immutable owned parameters
-
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). -
digest
-