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

io.quarkus.redis.runtime.client.config.TlsConfig Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.redis.runtime.client.config;

import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.vertx.core.runtime.config.JksConfiguration;
import io.quarkus.vertx.core.runtime.config.PemKeyCertConfiguration;
import io.quarkus.vertx.core.runtime.config.PemTrustCertConfiguration;
import io.quarkus.vertx.core.runtime.config.PfxConfiguration;
import io.smallrye.config.WithDefault;

@ConfigGroup
public interface TlsConfig {

    /**
     * Whether SSL/TLS is enabled.
     */
    @WithDefault("false")
    boolean enabled();

    /**
     * Enable trusting all certificates. Disabled by default.
     */
    @WithDefault("false")
    boolean trustAll();

    /**
     * Trust configuration in the PEM format.
     * 

* When enabled, {@code #trust-certificate-jks} and {@code #trust-certificate-pfx} must be disabled. */ PemTrustCertConfiguration trustCertificatePem(); /** * Trust configuration in the JKS format. *

* When enabled, {@code #trust-certificate-pem} and {@code #trust-certificate-pfx} must be disabled. */ JksConfiguration trustCertificateJks(); /** * Trust configuration in the PFX format. *

* When enabled, {@code #trust-certificate-jks} and {@code #trust-certificate-pem} must be disabled. */ PfxConfiguration trustCertificatePfx(); /** * Key/cert configuration in the PEM format. *

* When enabled, {@code key-certificate-jks} and {@code #key-certificate-pfx} must be disabled. */ PemKeyCertConfiguration keyCertificatePem(); /** * Key/cert configuration in the JKS format. *

* When enabled, {@code #key-certificate-pem} and {@code #key-certificate-pfx} must be disabled. */ JksConfiguration keyCertificateJks(); /** * Key/cert configuration in the PFX format. *

* When enabled, {@code key-certificate-jks} and {@code #key-certificate-pem} must be disabled. */ PfxConfiguration keyCertificatePfx(); /** * The hostname verification algorithm to use in case the server's identity should be checked. * Should be {@code HTTPS}, {@code LDAPS} or an {@code NONE} (default). *

* If set to {@code NONE}, it does not verify the hostname. *

*/ @WithDefault("NONE") String hostnameVerificationAlgorithm(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy