All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.consumers.config.SslContextProperties Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package pl.allegro.tech.hermes.consumers.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import pl.allegro.tech.hermes.consumers.consumer.sender.http.SslContextParameters;

@ConfigurationProperties(prefix = "consumer.ssl")
public class SslContextProperties implements SslContextParameters {

    private boolean enabled = true;

    private String protocol = "TLS";

    private String keystoreSource = "jre";

    private String keystoreLocation = "classpath:client.keystore";

    private String keystorePassword = "password";

    private String keystoreFormat = "JKS";

    private String truststoreSource = "jre";

    private String truststoreLocation = "classpath:client.truststore";

    private String truststorePassword = "password";

    private String truststoreFormat = "JKS";

    @Override
    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    @Override
    public String getKeystoreSource() {
        return keystoreSource;
    }

    public void setKeystoreSource(String keystoreSource) {
        this.keystoreSource = keystoreSource;
    }

    @Override
    public String getKeystoreLocation() {
        return keystoreLocation;
    }

    public void setKeystoreLocation(String keystoreLocation) {
        this.keystoreLocation = keystoreLocation;
    }

    @Override
    public String getKeystorePassword() {
        return keystorePassword;
    }

    public void setKeystorePassword(String keystorePassword) {
        this.keystorePassword = keystorePassword;
    }

    @Override
    public String getKeystoreFormat() {
        return keystoreFormat;
    }

    public void setKeystoreFormat(String keystoreFormat) {
        this.keystoreFormat = keystoreFormat;
    }

    @Override
    public String getTruststoreSource() {
        return truststoreSource;
    }

    public void setTruststoreSource(String truststoreSource) {
        this.truststoreSource = truststoreSource;
    }

    @Override
    public String getTruststoreLocation() {
        return truststoreLocation;
    }

    public void setTruststoreLocation(String truststoreLocation) {
        this.truststoreLocation = truststoreLocation;
    }

    @Override
    public String getTruststorePassword() {
        return truststorePassword;
    }

    public void setTruststorePassword(String truststorePassword) {
        this.truststorePassword = truststorePassword;
    }

    @Override
    public String getTruststoreFormat() {
        return truststoreFormat;
    }

    public void setTruststoreFormat(String truststoreFormat) {
        this.truststoreFormat = truststoreFormat;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy