Record Class EnrollmentRuntimeConfiguration
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentRuntimeConfiguration
- Record Components:
budgets- explicit transaction admission limitskeyrings- dedicated encrypted keyring ownerscredentialSets- immutable, authority-scoped current and retained credentialsactiveCredentials- unique selections for new protocol transactionskeygenArtifacts- optional encrypted delivery artifact capability
public record EnrollmentRuntimeConfiguration(EnrollmentRuntimeConfiguration.Budgets budgets, List<EnrollmentRuntimeConfiguration.Keyring> keyrings, List<EnrollmentRuntimeConfiguration.CredentialSet> credentialSets, List<EnrollmentRuntimeConfiguration.ActiveCredential> activeCredentials, Optional<EnrollmentRuntimeConfiguration.KeygenArtifacts> keygenArtifacts)
extends Record
Immutable, separately versioned enrollment resource and credential configuration.
No capability or resource budget is enabled implicitly. Certificate paths name
single DER certificates, and encrypted keyring paths must already exist.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSelection for newly admitted transactions; retained transactions keep their ID.static final recordExplicit transaction budgets, including terminal replay records.static final recordImmutable authority-scoped protocol credentials.static final recordOptional client-encrypted server-keygen delivery storage.static final recordReference to existing material in a configured encrypted keyring.static final recordDedicated, preprovisioned encrypted keyring.static final recordExplicit CMP PBM work, salt and algorithm limits.static enumExplicitly supported PBM digest families.static final recordOne CMP PBM requester, isolated to this credential set and authority.static enumExplicitly supported PBM MAC families.static enumProtocols requiring explicitly provisioned message credentials.static final recordResponse signer with a leaf-to-anchor DER certificate chain. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCurrent companion configuration version; independent of server schema 8. -
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentRuntimeConfiguration(EnrollmentRuntimeConfiguration.Budgets budgets, List<EnrollmentRuntimeConfiguration.Keyring> keyrings, List<EnrollmentRuntimeConfiguration.CredentialSet> credentialSets, List<EnrollmentRuntimeConfiguration.ActiveCredential> activeCredentials, Optional<EnrollmentRuntimeConfiguration.KeygenArtifacts> keygenArtifacts) Validates bounded collections and every cross-reference. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveCredentialsrecord component.budgets()Returns the value of thebudgetsrecord component.Returns the value of thecredentialSetsrecord component.decode(byte[] bytes) Decodes a closed version-one JSON document, at most 1 MiB.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 thekeygenArtifactsrecord component.keyrings()Returns the value of thekeyringsrecord component.Reads a bounded strict UTF-8 companion document.toString()Returns a string representation of this record class.
-
Field Details
-
VERSION
public static final int VERSIONCurrent companion configuration version; independent of server schema 8.- See Also:
-
-
Constructor Details
-
EnrollmentRuntimeConfiguration
public EnrollmentRuntimeConfiguration(EnrollmentRuntimeConfiguration.Budgets budgets, List<EnrollmentRuntimeConfiguration.Keyring> keyrings, List<EnrollmentRuntimeConfiguration.CredentialSet> credentialSets, List<EnrollmentRuntimeConfiguration.ActiveCredential> activeCredentials, Optional<EnrollmentRuntimeConfiguration.KeygenArtifacts> keygenArtifacts) Validates bounded collections and every cross-reference.
-
-
Method Details
-
read
Reads a bounded strict UTF-8 companion document.- Parameters:
path- document path- Returns:
- immutable validated configuration
- Throws:
IOException- if reading failsIllegalArgumentException- if the document is invalid
-
decode
Decodes a closed version-one JSON document, at most 1 MiB.- Parameters:
bytes- exact UTF-8 document- Returns:
- immutable validated configuration
- Throws:
IllegalArgumentException- if the document is invalid
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
budgets
-
keyrings
-
credentialSets
Returns the value of thecredentialSetsrecord component.- Returns:
- the value of the
credentialSetsrecord component
-
activeCredentials
Returns the value of theactiveCredentialsrecord component.- Returns:
- the value of the
activeCredentialsrecord component
-
keygenArtifacts
Returns the value of thekeygenArtifactsrecord component.- Returns:
- the value of the
keygenArtifactsrecord component
-