summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-09-04 16:23:16 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2017-09-04 16:30:00 +0200
commiteb1927ad7ddb3b84891e8c0c664d779fc6f69d41 (patch)
tree5cb2e135dd69bb1ae8a46a16b4b4ef61e52e6f02 /controller-api
parent99f0dbd45157373efe78a53cc14970dcee95282d (diff)
Support KeyService impls with versioned secrets
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java
index 98c664eb07d..61cd738314a 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java
@@ -5,9 +5,14 @@ package com.yahoo.vespa.hosted.controller.api.integration.security;
* A service for retrieving secrets, such as API keys, private keys and passwords.
*
* @author mpolden
+ * @author bjorncs
*/
public interface KeyService {
String getSecret(String key);
+ default String getSecret(String key, int version) {
+ throw new UnsupportedOperationException("KeyService implementation does not support versioned secrets");
+ }
+
}