io.zeebe.gateway.impl.configuration.SecurityCfg Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.0. You may not use this file
* except in compliance with the Zeebe Community License 1.0.
*/
package io.zeebe.gateway.impl.configuration;
import static io.zeebe.gateway.impl.configuration.ConfigurationDefaults.DEFAULT_TLS_ENABLED;
import java.util.Objects;
public final class SecurityCfg {
private boolean enabled = DEFAULT_TLS_ENABLED;
private String certificateChainPath;
private String privateKeyPath;
public boolean isEnabled() {
return enabled;
}
public SecurityCfg setEnabled(final boolean enabled) {
this.enabled = enabled;
return this;
}
public String getCertificateChainPath() {
return certificateChainPath;
}
public SecurityCfg setCertificateChainPath(final String certificateChainPath) {
this.certificateChainPath = certificateChainPath;
return this;
}
public String getPrivateKeyPath() {
return privateKeyPath;
}
public SecurityCfg setPrivateKeyPath(final String privateKeyPath) {
this.privateKeyPath = privateKeyPath;
return this;
}
@Override
public int hashCode() {
return Objects.hash(enabled, certificateChainPath, privateKeyPath);
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final SecurityCfg that = (SecurityCfg) o;
return enabled == that.enabled
&& Objects.equals(certificateChainPath, that.certificateChainPath)
&& Objects.equals(privateKeyPath, that.privateKeyPath);
}
@Override
public String toString() {
return "MonitoringCfg{"
+ "enabled="
+ enabled
+ ", certificateChainPath='"
+ certificateChainPath
+ "'"
+ ", privateKeyPath='"
+ privateKeyPath
+ "'}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy