Interface HttpAuthHeadersProvider
- All Known Subinterfaces:
SinglePassAuthentication
public interface HttpAuthHeadersProvider
Capability: single-pass credential exchange for the Pulsar HTTP transport (PIP-478).
-
Method Summary
Modifier and TypeMethodDescriptionProduce the authentication headers for an outgoing HTTP request (for exampleAuthorization: Bearer <jwt>, or a custom header such asAthenz-Role-Auth).
-
Method Details
-
getHttpHeadersAsync
Produce the authentication headers for an outgoing HTTP request (for exampleAuthorization: Bearer <jwt>, or a custom header such asAthenz-Role-Auth).The returned
HttpAuthHeadersare attached to the request; most implementations produce the same credential for every call. Completes exceptionally on failure (see the error model inPulsarClientException). 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
-