aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-api
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2019-10-25 13:00:32 +0200
committerJon Marius Venstad <venstad@gmail.com>2019-10-25 13:00:32 +0200
commitef9e8a057e6782a461869f186a98d85fe89563d3 (patch)
treea81d410bc150bd4fe8b22f82eee214ca411d4303 /hosted-api
parent052987bb1acf8c78426a7f33e618560bb0269f50 (diff)
Change property names expected by plugins and test framework for auth files
Diffstat (limited to 'hosted-api')
-rw-r--r--hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java b/hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java
index c0fe2074809..39d56408fb8 100644
--- a/hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java
+++ b/hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java
@@ -42,18 +42,18 @@ public class Properties {
}
/** Returns the path of the API private key. This must be set with the 'privateKeyFile' property. */
- public static Path apiPrivateKeyFile() {
- return Paths.get(requireNonBlankProperty("privateKeyFile"));
+ public static Path apiKeyFile() {
+ return Paths.get(requireNonBlankProperty("apiKeyFile"));
}
/** Returns the path of the API certificate, if this is set with the 'certificateFile' property. */
public static Optional<Path> apiCertificateFile() {
- return getNonBlankProperty("certificateFile").map(Paths::get);
+ return getNonBlankProperty("apiCertificateFile").map(Paths::get);
}
/** Returns the actual private key as a string */
- public static Optional<String> privateKey() {
- return getNonBlankProperty("privateKey");
+ public static Optional<String> apiKey() {
+ return getNonBlankProperty("apiKey");
}
/** Returns the path of the data plane certificate file, if this is set with the 'dataPlaneCertificateFile' property. */