diff options
Diffstat (limited to 'config-model-api/src/main/java/com/yahoo/config/model/api/EndpointCertificateSecrets.java')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/EndpointCertificateSecrets.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/EndpointCertificateSecrets.java b/config-model-api/src/main/java/com/yahoo/config/model/api/EndpointCertificateSecrets.java new file mode 100644 index 00000000000..6fcbac4f422 --- /dev/null +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/EndpointCertificateSecrets.java @@ -0,0 +1,30 @@ +// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.config.model.api; + +public class EndpointCertificateSecrets { + public static final EndpointCertificateSecrets MISSING = new EndpointCertificateSecrets(); + + private final String certificate; + private final String key; + + private EndpointCertificateSecrets() { + this(null, null); + } + + public EndpointCertificateSecrets(String certificate, String key) { + this.certificate = certificate; + this.key = key; + } + + public String certificate() { + return certificate; + } + + public String key() { + return key; + } + + public boolean isMissing() { + return this == MISSING; + } +} |