aboutsummaryrefslogtreecommitdiffstats
path: root/tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-05-04 16:20:14 +0200
committerjonmv <venstad@gmail.com>2022-05-04 16:20:14 +0200
commit4204e6ea8a1f133dce2ac9d7265c45e5d4c84395 (patch)
treee4a0c425340930be65abe5ee8f886b41dd6deb3b /tenant-cd-api/src/main/java/ai/vespa/hosted/cd/Endpoint.java
parent565de130d7a7a176d6658cce756288831ec3f387 (diff)
Expose EndpointAuthenticator
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.java3
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);