Interface HttpAuthHeadersProvider

All Known Subinterfaces:
SinglePassAuthentication

public interface HttpAuthHeadersProvider
Capability: single-pass credential exchange for the Pulsar HTTP transport (PIP-478).
  • Method Details

    • getHttpHeadersAsync

      Produce the authentication headers for an outgoing HTTP request (for example Authorization: Bearer <jwt>, or a custom header such as Athenz-Role-Auth).

      The returned HttpAuthHeaders are attached to the request; most implementations produce the same credential for every call. Completes exceptionally on failure (see the error model in PulsarClientException). Never throws synchronously: all failures are reported by completing the returned future exceptionally, never by throwing on the calling thread.

      Parameters:
      ctx - the per-call context
      Returns:
      a future of the HTTP authentication headers