diff options
author | Morten Tokle <mortent@oath.com> | 2018-04-24 09:06:24 +0200 |
---|---|---|
committer | Morten Tokle <mortent@oath.com> | 2018-04-24 11:33:41 +0200 |
commit | a4d740f03a9acd8de9b6c4b3acf0c277360f4122 (patch) | |
tree | 0b7b5edbe8f9b85dbc72ecb5498d04f4311b1095 /container-disc | |
parent | 7c3160ddd88d7b8ee4a37b8aa59ed561280e8a76 (diff) |
Deprecate legacy SecretStore interface
Diffstat (limited to 'container-disc')
-rw-r--r-- | container-disc/src/main/java/com/yahoo/container/jdisc/SecretStoreProvider.java | 8 | ||||
-rw-r--r-- | container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java (renamed from container-disc/src/main/java/com/yahoo/container/jdisc/SecretStore.java) | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStoreProvider.java b/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStoreProvider.java index 9e35619cc84..28169524c90 100644 --- a/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStoreProvider.java +++ b/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStoreProvider.java @@ -2,7 +2,6 @@ package com.yahoo.container.jdisc; import com.yahoo.container.di.componentgraph.Provider; -import com.yahoo.jdisc.http.SecretStore; /** * An secret store provider which provides a factory which throws exception on @@ -12,17 +11,18 @@ import com.yahoo.jdisc.http.SecretStore; * * @author bratseth */ -public class SecretStoreProvider implements Provider<SecretStore> { +@SuppressWarnings("deprecation") +public class SecretStoreProvider implements Provider<com.yahoo.jdisc.http.SecretStore> { private static final ThrowingSecretStore instance = new ThrowingSecretStore(); @Override - public SecretStore get() { return instance; } + public com.yahoo.jdisc.http.SecretStore get() { return instance; } @Override public void deconstruct() { } - private static final class ThrowingSecretStore implements SecretStore { + private static final class ThrowingSecretStore implements com.yahoo.jdisc.http.SecretStore { @Override public String getSecret(String key) { diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStore.java b/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java index 5e18f608777..902d924c431 100644 --- a/container-disc/src/main/java/com/yahoo/container/jdisc/SecretStore.java +++ b/container-disc/src/main/java/com/yahoo/container/jdisc/secretstore/SecretStore.java @@ -1,6 +1,6 @@ // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.container.jdisc; +package com.yahoo.container.jdisc.secretstore; /** * @author mortent |