aboutsummaryrefslogtreecommitdiffstats
path: root/hosted-api
diff options
context:
space:
mode:
Diffstat (limited to 'hosted-api')
-rw-r--r--hosted-api/src/main/java/ai/vespa/hosted/api/Properties.java5
1 files changed, 5 insertions, 0 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 9c7380180f7..68656f06d7d 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
@@ -51,6 +51,11 @@ public class Properties {
return getNonBlankProperty("certificateFile").map(Paths::get);
}
+ /** Returns the actual private key as a string */
+ public static Optional<String> privateKey() {
+ return getNonBlankProperty("privateKey");
+ }
+
/** Returns the path of the data plane certificate file, if this is set with the 'dataPlaneCertificateFile' property. */
public static Optional<Path> dataPlaneCertificateFile() {
return getNonBlankProperty("dataPlaneCertificateFile").map(Paths::get);