aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java')
-rw-r--r--container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java b/container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java
new file mode 100644
index 00000000000..4f739c5bd78
--- /dev/null
+++ b/container-core/src/main/java/com/yahoo/jdisc/http/SecretStore.java
@@ -0,0 +1,23 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.jdisc.http;
+
+/**
+ * An abstraction of a secret store for e.g passwords.
+ * Implementations can be plugged in to provide passwords for various keys.
+ *
+ * @author bratseth
+ * @author bjorncs
+ * @deprecated Use com.yahoo.container.jdisc.secretstore.SecretStore
+ */
+@Deprecated // Vespa 8
+public interface SecretStore {
+
+ /** Returns the secret for this key */
+ String getSecret(String key);
+
+ /** Returns the secret for this key and version */
+ default String getSecret(String key, int version) {
+ throw new UnsupportedOperationException("SecretStore implementation does not support versioned secrets");
+ }
+
+}