Record Class AlgorithmIdentity.RsaPssParameters
java.lang.Object
java.lang.Record
zeroecho.core.spec.AlgorithmIdentity.RsaPssParameters
- Record Components:
hash- message digest identitymask- mask-generation identitymaskHash- mask-generation digest identitysaltLength- non-negative salt length in bytestrailerField- trailer field; PKCS#1 currently defines value1
- All Implemented Interfaces:
AlgorithmIdentity.Parameters
- Enclosing class:
AlgorithmIdentity
public static record AlgorithmIdentity.RsaPssParameters(AlgorithmIdentity hash, AlgorithmIdentity mask, AlgorithmIdentity maskHash, int saltLength, int trailerField)
extends Record
implements AlgorithmIdentity.Parameters
Exact RSA-PSS parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionRsaPssParameters(AlgorithmIdentity hash, AlgorithmIdentity mask, AlgorithmIdentity maskHash, int saltLength, int trailerField) Creates a validated exact RSA-PSS parameter tuple. -
Method Summary
Modifier and TypeMethodDescriptionReturns the deterministic parameter representation.final booleanIndicates whether some other object is "equal to" this one.hash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.Returns an independently owned immutable copy.mask()Returns the value of themaskrecord component.maskHash()Returns the value of themaskHashrecord component.intReturns the value of thesaltLengthrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetrailerFieldrecord component.
-
Constructor Details
-
RsaPssParameters
public RsaPssParameters(AlgorithmIdentity hash, AlgorithmIdentity mask, AlgorithmIdentity maskHash, int saltLength, int trailerField) Creates a validated exact RSA-PSS parameter tuple.- Throws:
IllegalArgumentException- if roles or numeric parameters are contradictory
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hash
-
mask
-
maskHash
-
saltLength
public int saltLength()Returns the value of thesaltLengthrecord component.- Returns:
- the value of the
saltLengthrecord component
-
trailerField
public int trailerField()Returns the value of thetrailerFieldrecord component.- Returns:
- the value of the
trailerFieldrecord component
-