diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2018-02-23 14:19:52 +0100 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2018-02-26 11:17:18 +0100 |
commit | 3f65f53ef1b4b17c6c77492af922bbb6e5c1a3f9 (patch) | |
tree | d9655b7075b8ebd04dc5ebcd3feca00debf7ed03 /controller-api | |
parent | 3218392572f8b8e3357e0e42ed28947d674179df (diff) |
Remove KeyService
Diffstat (limited to 'controller-api')
3 files changed, 0 insertions, 37 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 deleted file mode 100644 index 61cd738314a..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyService.java +++ /dev/null @@ -1,18 +0,0 @@ -// 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"); - } - -} diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyServiceMock.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyServiceMock.java deleted file mode 100644 index d2a4b675f6d..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/KeyServiceMock.java +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2018 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; - -/** - * @author mpolden - */ -public class KeyServiceMock implements KeyService { - - @Override - public String getSecret(String key) { - return "fake-secret-for-" + key; - } - -} diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/package-info.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/package-info.java deleted file mode 100644 index 296eebf8ea5..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/security/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -@ExportPackage -package com.yahoo.vespa.hosted.controller.api.integration.security; - -import com.yahoo.osgi.annotation.ExportPackage; |