diff options
Diffstat (limited to 'tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java')
-rw-r--r-- | tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java b/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java index 3fd345abaff..319d835c73a 100644 --- a/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java +++ b/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java @@ -18,6 +18,9 @@ public interface Endpoint { /** Returns the URI of the endpoint, with scheme, host and port. */ URI uri(); + /** Returns the authenticator for HTTP requests against this particular endpoint. */ + EndpointAuthenticator authenticator(); + /** Sends the given request with required authentication. */ <T> HttpResponse<T> send(HttpRequest.Builder request, HttpResponse.BodyHandler<T> handler); |