diff options
Diffstat (limited to 'vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/Identity.java')
-rw-r--r-- | vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/Identity.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/Identity.java b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/Identity.java new file mode 100644 index 00000000000..455f3c06d1d --- /dev/null +++ b/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zts/Identity.java @@ -0,0 +1,29 @@ +// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.vespa.athenz.client.zts; + +import java.security.cert.X509Certificate; +import java.util.List; + +/** + * The identity of a service + * + * @author bjorncs + */ +public class Identity { + + private final X509Certificate certificate; + private final List<X509Certificate> caCertificates; + + public Identity(X509Certificate certificate, List<X509Certificate> caCertificates) { + this.certificate = certificate; + this.caCertificates = caCertificates; + } + + public X509Certificate certificate() { + return certificate; + } + + public List<X509Certificate> caCertificates() { + return caCertificates; + } +} |