Class LockAuditClient

java.lang.Object
io.jans.fido2.service.audit.LockAuditClient

@ApplicationScoped public class LockAuditClient extends Object
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 Details

    • LockAuditClient

      public LockAuditClient()
  • Method Details

    • postBatch

      public void postBatch(List<LockAuditEvent> events, String accessToken)
      Parameters:
      accessToken - a token already obtained by the caller — LockAuditEventCollector fetches 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.