Class OcspRequesterService
java.lang.Object
zeroecho.pki.server.OcspRequesterService
Transport-neutral signed-OCSP requester authentication and scoped query
authorization. Certificate trust proves eligibility only; an enabled persisted
principal and an explicit
Permission.Action.OCSP_STATUS_QUERY grant are
independently required.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSafe successful authentication result.static final recordExact bounded cryptographic fields retained from one canonical request.static final classSafe authentication or authorization rejection.static final classDependency corruption or recovery-required authorization authority. -
Constructor Summary
ConstructorsConstructorDescriptionOcspRequesterService(ServerRealmContext realm, Clock clock) Creates one realm-bound requester authentication service. -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(OcspResponderService.Responder responder, OcspRequesterService.SignedRequest request, List<OcspResponseService.CertId> requests) Authenticates and authorizes every CertID in one signed request.
-
Constructor Details
-
OcspRequesterService
Creates one realm-bound requester authentication service.- Parameters:
realm- owning realm contextclock- authoritative server clock
-
-
Method Details
-
authenticate
public OcspRequesterService.Authorized authenticate(OcspResponderService.Responder responder, OcspRequesterService.SignedRequest request, List<OcspResponseService.CertId> requests) Authenticates and authorizes every CertID in one signed request. Any failure rejects the whole request without revealing the failed entry.- Parameters:
responder- exact responder configurationrequest- canonical signed request fieldsrequests- certificate identifiers authorized as one unit- Returns:
- authenticated enabled requester principal
-