diff options
author | Morten Tokle <morten.tokle@gmail.com> | 2017-10-27 14:57:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 14:57:06 +0200 |
commit | 513bde8cc84219ae1f4d3637b8479d220f874ebe (patch) | |
tree | da6c568bd98190b647adbc329f85ce024a7b3738 | |
parent | 5fcbb66f52d44b286f0898ab318f7e6269330f4e (diff) | |
parent | 8fc4a7ca911ea9191d9cb4b3ec58aa7030f40a51 (diff) |
Merge pull request #3922 from vespa-engine/bjorncs/secret-store
Support versioned secrets in SecretStore
-rw-r--r-- | jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java b/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java index 863b1eb1c58..94b4a05cae4 100644 --- a/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java +++ b/jdisc_http_service/src/main/java/com/yahoo/jdisc/http/SecretStore.java @@ -6,10 +6,16 @@ package com.yahoo.jdisc.http; * Implementations can be plugged in to provide passwords for various keys. * * @author bratseth + * @author bjorncs */ 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"); + } + } |