Record Class EnrollmentRuntimeConfiguration.Pbm

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentRuntimeConfiguration.Pbm
Record Components:
minimumIterations - positive iteration floor
maximumIterations - iteration ceiling, at most 1000000
minimumSaltBytes - salt floor, at least 16 bytes
maximumSaltBytes - salt ceiling, at most 64 bytes
digests - nonempty allowed digest families
macs - nonempty allowed MAC families
identities - 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 Details

  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • minimumIterations

      public int minimumIterations()
      Returns the value of the minimumIterations record component.
      Returns:
      the value of the minimumIterations record component
    • maximumIterations

      public int maximumIterations()
      Returns the value of the maximumIterations record component.
      Returns:
      the value of the maximumIterations record component
    • minimumSaltBytes

      public int minimumSaltBytes()
      Returns the value of the minimumSaltBytes record component.
      Returns:
      the value of the minimumSaltBytes record component
    • maximumSaltBytes

      public int maximumSaltBytes()
      Returns the value of the maximumSaltBytes record component.
      Returns:
      the value of the maximumSaltBytes record component
    • digests

      Returns the value of the digests record component.
      Returns:
      the value of the digests record component
    • macs

      Returns the value of the macs record component.
      Returns:
      the value of the macs record component
    • identities

      Returns the value of the identities record component.
      Returns:
      the value of the identities record component