Package io.jans.fido2.service.audit
Class LockAuditClient
java.lang.Object
io.jans.fido2.service.audit.LockAuditClient
Delivers a batch of
LockAuditEvent to the Lock Server's /audit/log/bulk
endpoint. Transport only — batching/scheduling lives in LockAuditEventCollector, which
is also what turns any exception thrown here into a dropped-batch, never a propagated failure.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostBatch(List<LockAuditEvent> events, String accessToken)
-
Constructor Details
-
LockAuditClient
public LockAuditClient()
-
-
Method Details
-
postBatch
- Parameters:
accessToken- a token already obtained by the caller —LockAuditEventCollectorfetches one once per drain and reuses it across every chunk of that flush, rather than this method obtaining a fresh one per call (a drain split into N chunks previously meant N client-credentials grants against the auth server for a single flush).- Throws:
Fido2RuntimeException- on any failure to validate the endpoint, serialize, or deliver the batch. The caller is responsible for catching this and dropping the chunk rather than retrying inline or propagating it further.
-