summaryrefslogtreecommitdiffstats
path: root/container-disc/src
diff options
context:
space:
mode:
authorandreer <andreer@verizonmedia.com>2019-10-01 15:19:48 +0200
committerandreer <andreer@verizonmedia.com>2019-10-02 08:39:37 +0200
commitbf56f5c264fb63b130e0ea2aacc9d447d311f2e6 (patch)
tree36bed265eaca90668026ca4d3b7b5b835f686c20 /container-disc/src
parent2d632e8e16d787a3f8f8c758394c05f70e38b934 (diff)
list existing versions of a secret
Diffstat (limited to 'container-disc/src')
-rw-r--r--container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java b/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java
index 902d924c431..7cd8e11c677 100644
--- a/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java
+++ b/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java
@@ -2,6 +2,8 @@
package com.yahoo.container.jdisc.secretstore;
+import java.util.List;
+
/**
* @author mortent
*/
@@ -11,4 +13,9 @@ public interface SecretStore {
/** Returns the secret for this key and version */
String getSecret(String key, int version);
+
+ /** Lists the existing versions of this secret (nonnegative integers) */
+ default List<Integer> listSecretVersions(String key) {
+ throw new UnsupportedOperationException("Secret store does not support listing versions");
+ }
}