Package co.cryptoservice.sdk
Record Class KdfParams
java.lang.Object
java.lang.Record
co.cryptoservice.sdk.KdfParams
- Record Components:
N- the scrypt cost, or nullinfo- the HPKE info, or nulliterations- the PBKDF2 iterations, or nullp- the scrypt parallelism, or nullr- the scrypt block size, or null
public record KdfParams(Integer N, String info, Integer iterations, Integer p, Integer r)
extends Record
The
params member.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.Returns the value of theiterationsrecord component.N()Returns the value of theNrecord component.p()Returns the value of theprecord component.r()Returns the value of therrecord component.toString()Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted.A copy withinforeplaced.withIterations(Integer iterations) A copy withiterationsreplaced.A copy withNreplaced.A copy withpreplaced.A copy withrreplaced.
-
Constructor Details
-
KdfParams
Creates an instance of aKdfParamsrecord class.- Parameters:
N- the value for theNrecord componentinfo- the value for theinforecord componentiterations- the value for theiterationsrecord componentp- the value for theprecord componentr- the value for therrecord component
-
-
Method Details
-
withN
A copy withNreplaced.- Parameters:
N- the scrypt cost, or null- Returns:
- the new request
-
withInfo
A copy withinforeplaced.- Parameters:
info- the HPKE info, or null- Returns:
- the new request
-
withIterations
A copy withiterationsreplaced.- Parameters:
iterations- the PBKDF2 iterations, or null- Returns:
- the new request
-
withP
A copy withpreplaced.- Parameters:
p- the scrypt parallelism, or null- Returns:
- the new request
-
withR
A copy withrreplaced.- Parameters:
r- the scrypt block size, or null- Returns:
- the new request
-
toString
Names the members; values that may be secret (keys, plaintexts, passwords, signatures) are redacted. -
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. -
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). -
N
Returns the value of theNrecord component.- Returns:
- the value of the
Nrecord component
-
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
iterations
Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
p
Returns the value of theprecord component.- Returns:
- the value of the
precord component
-
r
Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-