Interface EndpointAuthenticator


public interface EndpointAuthenticator
Adds environment dependent authentication to HTTP request against Vespa deployments. An implementation typically needs to override either of the methods in this interface, and needs to run in different environments, e.g., local user testing and automatic testing in a deployment pipeline.
Author:
jonmv
  • Method Details

    • sslContext

      default SSLContext sslContext()
      Returns an SSLContext which provides authentication against a Vespa endpoint.
    • authenticated

      default HttpRequest.Builder authenticated(HttpRequest.Builder request)
      Adds necessary authentication data to the given HTTP request builder, to pass the data plane of a Vespa endpoint.
    • authorizationHeaders

      default Map<String,String> authorizationHeaders()