Record Class EnrollmentRuntimeConfiguration.KeygenArtifacts

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentRuntimeConfiguration.KeygenArtifacts
Record Components:
directory - preprovisioned exclusive artifact directory
maximumArtifactBytes - maximum ciphertext bytes per artifact
maximumRetainedBytes - aggregate reserved ciphertext bytes
maximumArtifacts - maximum retained artifact descriptors
maximumConcurrentGenerations - maximum active generation jobs
deliveryRetention - fixed delivery retention, at most 30 days
Enclosing class:
EnrollmentRuntimeConfiguration

public static record EnrollmentRuntimeConfiguration.KeygenArtifacts(Path directory, long maximumArtifactBytes, long maximumRetainedBytes, int maximumArtifacts, int maximumConcurrentGenerations, Duration deliveryRetention) extends Record
Optional client-encrypted server-keygen delivery storage. No plaintext key persistence is authorized by this capability.
  • Constructor Details

    • KeygenArtifacts

      public KeygenArtifacts(Path directory, long maximumArtifactBytes, long maximumRetainedBytes, int maximumArtifacts, int maximumConcurrentGenerations, Duration deliveryRetention)
      Validates all explicit artifact budgets.
  • Method Details

    • toString

      public final 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.
    • directory

      public Path directory()
      Returns the value of the directory record component.
      Returns:
      the value of the directory record component
    • maximumArtifactBytes

      public long maximumArtifactBytes()
      Returns the value of the maximumArtifactBytes record component.
      Returns:
      the value of the maximumArtifactBytes record component
    • maximumRetainedBytes

      public long maximumRetainedBytes()
      Returns the value of the maximumRetainedBytes record component.
      Returns:
      the value of the maximumRetainedBytes record component
    • maximumArtifacts

      public int maximumArtifacts()
      Returns the value of the maximumArtifacts record component.
      Returns:
      the value of the maximumArtifacts record component
    • maximumConcurrentGenerations

      public int maximumConcurrentGenerations()
      Returns the value of the maximumConcurrentGenerations record component.
      Returns:
      the value of the maximumConcurrentGenerations record component
    • deliveryRetention

      public Duration deliveryRetention()
      Returns the value of the deliveryRetention record component.
      Returns:
      the value of the deliveryRetention record component