diff options
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java | 18 |
1 files changed, 18 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 new file mode 100644 index 00000000000..61cd738314a --- /dev/null +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java @@ -0,0 +1,18 @@ +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +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"); + } + +} |