Record Class EnrollmentRuntimeConfiguration.Pbm
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentRuntimeConfiguration.Pbm
- Record Components:
minimumIterations- positive iteration floormaximumIterations- iteration ceiling, at most 1000000minimumSaltBytes- salt floor, at least 16 bytesmaximumSaltBytes- salt ceiling, at most 64 bytesdigests- nonempty allowed digest familiesmacs- nonempty allowed MAC familiesidentities- nonempty unique sender and requester mappings
- Enclosing class:
EnrollmentRuntimeConfiguration
public static record EnrollmentRuntimeConfiguration.Pbm(int minimumIterations, int maximumIterations, int minimumSaltBytes, int maximumSaltBytes, Set<EnrollmentRuntimeConfiguration.PbmDigest> digests, Set<EnrollmentRuntimeConfiguration.PbmMac> macs, List<EnrollmentRuntimeConfiguration.PbmIdentity> identities)
extends Record
Explicit CMP PBM work, salt and algorithm limits. A message must satisfy
these limits before any iterative derivation is attempted.
-
Constructor Summary
ConstructorsConstructorDescriptionPbm(int minimumIterations, int maximumIterations, int minimumSaltBytes, int maximumSaltBytes, Set<EnrollmentRuntimeConfiguration.PbmDigest> digests, Set<EnrollmentRuntimeConfiguration.PbmMac> macs, List<EnrollmentRuntimeConfiguration.PbmIdentity> identities) Validates resource limits and independent requester mappings. -
Method Summary
Modifier and TypeMethodDescriptiondigests()Returns the value of thedigestsrecord 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 theidentitiesrecord component.macs()Returns the value of themacsrecord component.intReturns the value of themaximumIterationsrecord component.intReturns the value of themaximumSaltBytesrecord component.intReturns the value of theminimumIterationsrecord component.intReturns the value of theminimumSaltBytesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Pbm
public Pbm(int minimumIterations, int maximumIterations, int minimumSaltBytes, int maximumSaltBytes, Set<EnrollmentRuntimeConfiguration.PbmDigest> digests, Set<EnrollmentRuntimeConfiguration.PbmMac> macs, List<EnrollmentRuntimeConfiguration.PbmIdentity> identities) Validates resource limits and independent requester mappings.
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
minimumIterations
public int minimumIterations()Returns the value of theminimumIterationsrecord component.- Returns:
- the value of the
minimumIterationsrecord component
-
maximumIterations
public int maximumIterations()Returns the value of themaximumIterationsrecord component.- Returns:
- the value of the
maximumIterationsrecord component
-
minimumSaltBytes
public int minimumSaltBytes()Returns the value of theminimumSaltBytesrecord component.- Returns:
- the value of the
minimumSaltBytesrecord component
-
maximumSaltBytes
public int maximumSaltBytes()Returns the value of themaximumSaltBytesrecord component.- Returns:
- the value of the
maximumSaltBytesrecord component
-
digests
-
macs
-
identities
Returns the value of theidentitiesrecord component.- Returns:
- the value of the
identitiesrecord component
-