diff options
Diffstat (limited to 'controller-server/src/test/java/com/yahoo/vespa/hosted/controller/tls/SecretStoreMock.java')
-rw-r--r-- | controller-server/src/test/java/com/yahoo/vespa/hosted/controller/tls/SecretStoreMock.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/tls/SecretStoreMock.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/tls/SecretStoreMock.java deleted file mode 100644 index 2498668e28a..00000000000 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/tls/SecretStoreMock.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -package com.yahoo.vespa.hosted.controller.tls; - -import com.yahoo.component.annotation.Inject; -import com.yahoo.security.KeyUtils; -import com.yahoo.security.X509CertificateUtils; -import com.yahoo.vespa.hosted.controller.tls.config.TlsConfig; - -/** - * A secret store mock that's pre-populated with a certificate and key. - * - * @author mpolden - */ -@SuppressWarnings("unused") // Injected -public class SecretStoreMock extends com.yahoo.vespa.hosted.controller.integration.SecretStoreMock { - - @Inject - public SecretStoreMock(TlsConfig config) { - addKeyPair(config); - } - - private void addKeyPair(TlsConfig config) { - setSecret(config.privateKeySecret(), KeyUtils.toPem(Keys.keyPair.getPrivate())); - setSecret(config.certificateSecret(), X509CertificateUtils.toPem(Keys.certificate)); - } - -} |