diff options
author | Arnstein Ressem <aressem@gmail.com> | 2017-12-11 23:49:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 23:49:32 +0100 |
commit | 310493bc8bef0b0301e4526ffef2377088d83a87 (patch) | |
tree | 07aa4efcfa76b30c0493dde67c7661b4b0bfb71c /controller-api | |
parent | 6fb88055e04ba273f5edb1d87f0423f45dc1e470 (diff) |
Revert "Add getIdentityCertificate and getRoleCertificate to ZtsClient"
Diffstat (limited to 'controller-api')
4 files changed, 0 insertions, 72 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzIdentityCertificate.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzIdentityCertificate.java deleted file mode 100644 index d53817c09e4..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzIdentityCertificate.java +++ /dev/null @@ -1,27 +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.athenz; - -import java.security.PrivateKey; -import java.security.cert.X509Certificate; - -/** - * @author bjorncs - */ -public class AthenzIdentityCertificate { - - private final X509Certificate certificate; - private final PrivateKey privateKey; - - public AthenzIdentityCertificate(X509Certificate certificate, PrivateKey privateKey) { - this.certificate = certificate; - this.privateKey = privateKey; - } - - public X509Certificate getCertificate() { - return certificate; - } - - public PrivateKey getPrivateKey() { - return privateKey; - } -} diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzRoleCertificate.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzRoleCertificate.java deleted file mode 100644 index 80548cccd89..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzRoleCertificate.java +++ /dev/null @@ -1,27 +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.athenz; - -import java.security.PrivateKey; -import java.security.cert.X509Certificate; - -/** - * @author bjorncs - */ -public class AthenzRoleCertificate { - - private final X509Certificate certificate; - private final PrivateKey privateKey; - - public AthenzRoleCertificate(X509Certificate certificate, PrivateKey privateKey) { - this.certificate = certificate; - this.privateKey = privateKey; - } - - public X509Certificate getCertificate() { - return certificate; - } - - public PrivateKey getPrivateKey() { - return privateKey; - } -} diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzSslContextProvider.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzSslContextProvider.java deleted file mode 100644 index 480105a2d86..00000000000 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/AthenzSslContextProvider.java +++ /dev/null @@ -1,14 +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.athenz; - -import com.google.inject.Provider; - -import javax.net.ssl.SSLContext; - -/** - * Provides a {@link SSLContext} for use in controller clients communicating with Athenz TLS secured services. - * It is configured with a keystore containing the Athenz service certificate and a trust store with the Athenz CA certificates. - * - * @author bjorncs - */ -public interface AthenzSslContextProvider extends Provider<SSLContext> {} diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/ZtsClient.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/ZtsClient.java index f37c1679d1e..c7a2adfb17e 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/ZtsClient.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/athenz/ZtsClient.java @@ -12,8 +12,4 @@ public interface ZtsClient { List<AthenzDomain> getTenantDomainsForUser(AthenzIdentity principal); - AthenzIdentityCertificate getIdentityCertificate(); - - AthenzRoleCertificate getRoleCertificate(AthenzDomain roleDomain, String roleName); - } |