diff options
author | andreer <andreer@verizonmedia.com> | 2020-01-23 14:19:25 +0100 |
---|---|---|
committer | andreer <andreer@verizonmedia.com> | 2020-01-23 14:19:25 +0100 |
commit | 02411c62144ac45a29fbf8639e900834bd52675d (patch) | |
tree | 274f57f38c9f762c1d35db68838ef6030c45afd7 /controller-api | |
parent | b492c6d6b5f46bc484d249ef5aa3768d7dd91c71 (diff) |
read endpoint certificate metadata from zk
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateMetadata.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateMetadata.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateMetadata.java index 5838c828a3f..56a50faa4fa 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateMetadata.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/certificates/EndpointCertificateMetadata.java @@ -1,5 +1,7 @@ package com.yahoo.vespa.hosted.controller.api.integration.certificates; +import java.util.Objects; + /** * This class is used for metadata about an application's endpoint certificate on the controller. * <p> @@ -39,4 +41,19 @@ public class EndpointCertificateMetadata { ", version=" + version + '}'; } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + EndpointCertificateMetadata that = (EndpointCertificateMetadata) o; + return version == that.version && + Objects.equals(keyName, that.keyName) && + Objects.equals(certName, that.certName); + } + + @Override + public int hashCode() { + return Objects.hash(keyName, certName, version); + } } |