Record Class ServerRealmConfiguration
java.lang.Object
java.lang.Record
zeroecho.pki.server.ServerRealmConfiguration
- Record Components:
realmId- canonical realm identitydisplayName- safe finite administrative display nameconfirmationProofPolicy- immutable credential-confirmation proof policypkiSessionConfiguration- shared PKI session configuration- explicit process authority-exposure policy- SHA-256 commitment to authorization configurationapprovalCommitment- SHA-256 commitment to the HIGH_RISK approval policyextendedApprovalCommitment- SHA-256 commitment to all non-HIGH_RISK approval policiesdisclosureCommitment- SHA-256 commitment to disclosure defaultsdisclosureDefaults- safe object-disclosure defaultscontrolLogPath- dedicated server-control metadata logcontrolStoreId- explicit durable server-control identityapprovalPolicies- closed approval policies by operation category
public record ServerRealmConfiguration(RealmId realmId, String displayName, CredentialConfirmationProofPolicy confirmationProofPolicy, PkiSessionConfiguration pkiSessionConfiguration, AuthorityExposurePolicy authorityExposure, String authorizationCommitment, String approvalCommitment, String extendedApprovalCommitment, String disclosureCommitment, DisclosureService.Defaults disclosureDefaults, Path controlLogPath, MetadataStoreId controlStoreId, Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies)
extends Record
Immutable transport-neutral configuration for one server realm.
The realm identity and server-control identity are explicit values and are never derived from paths, listeners, display names, or Java types. Provider configuration values may contain sensitive references and must not be logged or rendered.
-
Constructor Summary
ConstructorsConstructorDescriptionServerRealmConfiguration(RealmId realmId, String displayName, CredentialConfirmationProofPolicy confirmationProofPolicy, PkiSessionConfiguration pkiSessionConfiguration, AuthorityExposurePolicy authorityExposure, String authorizationCommitment, String approvalCommitment, String extendedApprovalCommitment, String disclosureCommitment, DisclosureService.Defaults disclosureDefaults, Path controlLogPath, MetadataStoreId controlStoreId, Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Validates and snapshots the complete configuration before allocation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovalCommitmentrecord component.Returns the value of theapprovalPoliciesrecord component.Returns the value of theauthorityExposurerecord component.Returns the value of theauthorizationCommitmentrecord component.Returns the value of theconfirmationProofPolicyrecord component.Returns the value of thecontrolLogPathrecord component.Returns the value of thecontrolStoreIdrecord component.Returns the value of thedisclosureCommitmentrecord component.Returns the value of thedisclosureDefaultsrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextendedApprovalCommitmentrecord component.static StringextendedApprovalCommitment(Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Computes the canonical tamper-evidence commitment over every approval policy other thanOperationSecurityDescriptors.ApprovalCategory.HIGH_RISK(which the durable record commits separately).final inthashCode()Returns a hash code value for this object.Returns the value of thepkiSessionConfigurationrecord component.realmId()Returns the value of therealmIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerRealmConfiguration
public ServerRealmConfiguration(RealmId realmId, String displayName, CredentialConfirmationProofPolicy confirmationProofPolicy, PkiSessionConfiguration pkiSessionConfiguration, AuthorityExposurePolicy authorityExposure, String authorizationCommitment, String approvalCommitment, String extendedApprovalCommitment, String disclosureCommitment, DisclosureService.Defaults disclosureDefaults, Path controlLogPath, MetadataStoreId controlStoreId, Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Validates and snapshots the complete configuration before allocation.
-
-
Method Details
-
extendedApprovalCommitment
public static String extendedApprovalCommitment(Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Computes the canonical tamper-evidence commitment over every approval policy other thanOperationSecurityDescriptors.ApprovalCategory.HIGH_RISK(which the durable record commits separately).The commitment is a SHA-256 digest over the category-name-sorted map of
CATEGORY=policyCommitmententries, so any future approval category is absorbed by the same single field without a durable-record format change. An empty map yields the digest of the empty string.- Parameters:
approvalPolicies- closed approval policies by operation category- Returns:
- canonical extended approval commitment
-
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). -
realmId
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
confirmationProofPolicy
Returns the value of theconfirmationProofPolicyrecord component.- Returns:
- the value of the
confirmationProofPolicyrecord component
-
pkiSessionConfiguration
Returns the value of thepkiSessionConfigurationrecord component.- Returns:
- the value of the
pkiSessionConfigurationrecord component
-
authorityExposure
Returns the value of theauthorityExposurerecord component.- Returns:
- the value of the
authorityExposurerecord component
-
authorizationCommitment
Returns the value of theauthorizationCommitmentrecord component.- Returns:
- the value of the
authorizationCommitmentrecord component
-
approvalCommitment
Returns the value of theapprovalCommitmentrecord component.- Returns:
- the value of the
approvalCommitmentrecord component
-
extendedApprovalCommitment
Returns the value of theextendedApprovalCommitmentrecord component.- Returns:
- the value of the
extendedApprovalCommitmentrecord component
-
disclosureCommitment
Returns the value of thedisclosureCommitmentrecord component.- Returns:
- the value of the
disclosureCommitmentrecord component
-
disclosureDefaults
Returns the value of thedisclosureDefaultsrecord component.- Returns:
- the value of the
disclosureDefaultsrecord component
-
controlLogPath
Returns the value of thecontrolLogPathrecord component.- Returns:
- the value of the
controlLogPathrecord component
-
controlStoreId
Returns the value of thecontrolStoreIdrecord component.- Returns:
- the value of the
controlStoreIdrecord component
-
approvalPolicies
public Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies()Returns the value of theapprovalPoliciesrecord component.- Returns:
- the value of the
approvalPoliciesrecord component
-