Class ServerControlOperationExecutor
java.lang.Object
zeroecho.pki.server.ServerControlOperationExecutor
Sole closed dispatcher for transport-neutral server-control operations.
-
Constructor Summary
ConstructorsConstructorDescriptionServerControlOperationExecutor(PkiOperationExecutor pkiExecutor, RealmId realmId, AuthorityExposurePolicy exposure, ServerControlStore store, RoleTemplateCatalog roles, AuthorizationEngine authorization, ApprovalService approvals, BreakGlassService breakGlass, DisclosureService disclosure, CredentialPublicationGate credentialPublication, AuditorViews auditorViews, Optional<RepositoryAliasService> repositoryAliases, OperationSecurityDescriptors descriptors, Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Creates the one control dispatcher over existing durable authorities. -
Method Summary
Modifier and TypeMethodDescriptionResolves scope from the retained request before gateway authorization.execute(ServerControlOperation operation, String actorPrincipalId, Permission.Resource authorizedResource, Optional<String> approvalId, CancellationSignal cancellation) Executes exactly one already-authorized control operation synchronously.voidinstallAcme(AcmeService service) Installs the explicitly configured ACME capability exactly once before listener readiness.voidinstallAudit(AuditService search, AuditIntegrityService integrity) Installs the queryable/verifiable audit capability exactly once.voidinstallBackup(BackupService backupService) Installs the backup capability exactly once.voidinstallCmp(CmpService service) Installs the CMP RFC 4210/9480 endpoint registry exactly once before listener readiness.voidInstalls the realm-owned durable protocol approval coordinator exactly once.voidInstalls the enrollment profile registry exactly once before listener readiness.voidinstallEst(EstService service) Installs the EST RFC 7030 endpoint registry exactly once before listener readiness.voidinstallOcsp(OcspResponderService service) Installs the realm-owned durable OCSP responder capability exactly once.voidinstallScep(ScepService service) Installs the SCEP RFC 8894 endpoint registry exactly once before listener readiness.
-
Constructor Details
-
ServerControlOperationExecutor
public ServerControlOperationExecutor(PkiOperationExecutor pkiExecutor, RealmId realmId, AuthorityExposurePolicy exposure, ServerControlStore store, RoleTemplateCatalog roles, AuthorizationEngine authorization, ApprovalService approvals, BreakGlassService breakGlass, DisclosureService disclosure, CredentialPublicationGate credentialPublication, AuditorViews auditorViews, Optional<RepositoryAliasService> repositoryAliases, OperationSecurityDescriptors descriptors, Map<OperationSecurityDescriptors.ApprovalCategory, ApprovalService.Policy> approvalPolicies) Creates the one control dispatcher over existing durable authorities.The credential-publication gate must use the same disclosure service supplied to this constructor.
- Parameters:
pkiExecutor- realm-owned executor supplying typed safe runtime choicesrealmId- exact realm identityexposure- authority exposure policy for the realmstore- durable server-control storeroles- role-template catalogauthorization- authorization engineapprovals- durable approval servicebreakGlass- emergency-access servicedisclosure- durable disclosure servicecredentialPublication- authoritative credential-publication gateauditorViews- audit-view servicerepositoryAliases- optional repository-alias capabilitydescriptors- closed operation-security descriptor catalogapprovalPolicies- approval policy by operation category
-
-
Method Details
-
execute
public ServerControlOperationOutcome execute(ServerControlOperation operation, String actorPrincipalId, Permission.Resource authorizedResource, Optional<String> approvalId, CancellationSignal cancellation) Executes exactly one already-authorized control operation synchronously.- Parameters:
operation- exact control operationactorPrincipalId- authenticated actor identityauthorizedResource- resource proven by gateway authorizationapprovalId- optional approval identity presented for the operationcancellation- cancellation signal checked before dispatch- Returns:
- finite control-operation outcome
-
installAcme
Installs the explicitly configured ACME capability exactly once before listener readiness.- Parameters:
service- realm-owned ACME service- Throws:
IllegalStateException- if an ACME service is already installed
-
installOcsp
Installs the realm-owned durable OCSP responder capability exactly once.- Parameters:
service- realm-owned OCSP responder service- Throws:
IllegalStateException- if an OCSP service is already installed
-
installEst
Installs the EST RFC 7030 endpoint registry exactly once before listener readiness.- Parameters:
service- realm-owned EST service- Throws:
IllegalStateException- if an EST service is already installed
-
installScep
Installs the SCEP RFC 8894 endpoint registry exactly once before listener readiness.- Parameters:
service- realm-owned SCEP service- Throws:
IllegalStateException- if a SCEP service is already installed
-
installCmp
Installs the CMP RFC 4210/9480 endpoint registry exactly once before listener readiness.- Parameters:
service- realm-owned CMP service- Throws:
IllegalStateException- if a CMP service is already installed
-
installEnrollmentProfiles
Installs the enrollment profile registry exactly once before listener readiness.- Parameters:
service- realm-owned enrollment profile service- Throws:
IllegalStateException- if an enrollment profile service is already installed
-
installEnrollmentCoordinator
Installs the realm-owned durable protocol approval coordinator exactly once.- Parameters:
service- validated coordinator
-
enrollmentScope
Resolves scope from the retained request before gateway authorization.- Parameters:
id- persisted enrollment identity- Returns:
- exact authoritative realm/authority/issuer/profile scope
-
installAudit
Installs the queryable/verifiable audit capability exactly once.Only invoked when the configured audit sink supports bounded search and hash-chain verification; otherwise the audit admin operations fail closed as unsupported.
- Parameters:
search- bounded audit-log search capabilityintegrity- audit-log integrity-verification capability
-
installBackup
Installs the backup capability exactly once.- Parameters:
backupService- backup service backed by the store- Throws:
NullPointerException- ifbackupServiceisnullIllegalStateException- if a backup service is already installed
-