diff options
Diffstat (limited to 'container-disc/src/main/java/com/yahoo/container/jdisc/secret/TypedSecretStore.java')
-rw-r--r-- | container-disc/src/main/java/com/yahoo/container/jdisc/secret/TypedSecretStore.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/secret/TypedSecretStore.java b/container-disc/src/main/java/com/yahoo/container/jdisc/secret/TypedSecretStore.java new file mode 100644 index 00000000000..5bb00e836f5 --- /dev/null +++ b/container-disc/src/main/java/com/yahoo/container/jdisc/secret/TypedSecretStore.java @@ -0,0 +1,18 @@ +package com.yahoo.container.jdisc.secret; + +import com.yahoo.container.jdisc.secretstore.SecretStore; + +import java.util.List; + +public interface TypedSecretStore extends SecretStore { + + Secret getSecret(Key key); + + Secret getSecret(Key key, int version); + + /** Lists the existing versions of this secret (nonnegative integers) */ + default List<Secret> listSecretVersions(Key key) { + throw new UnsupportedOperationException("Secret store does not support listing versions"); + } + +} |