-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate Quarkus Redis Config to Vertx Redis Client
Propagate Quarkus Redis Config to Vertx Redis Client Propagate Quarkus Redis Config to Vertx Redis Client
- Loading branch information
1 parent
cc0727b
commit 07ee3d8
Showing
3 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
extensions/redis-client/runtime/src/main/java/io/quarkus/redis/client/runtime/SslConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package io.quarkus.redis.client.runtime; | ||
|
||
import java.util.Optional; | ||
|
||
import io.quarkus.runtime.annotations.ConfigGroup; | ||
import io.quarkus.runtime.annotations.ConfigItem; | ||
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; | ||
|
||
@ConfigGroup | ||
public class SslConfig { | ||
|
||
/** | ||
* Whether SSL/TLS is enabled. | ||
*/ | ||
@ConfigItem(defaultValue = "false") | ||
public boolean enabled; | ||
|
||
/** | ||
* Enable trusting all certificates. Disable by default. | ||
*/ | ||
@ConfigItem(defaultValue = "false") | ||
public boolean trustAll; | ||
|
||
/** | ||
* Trust configuration in the PEM format. | ||
* <p> | ||
* When enabled, {@code #trust-certificate-jks} and {@code #trust-certificate-pfx} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public PemTrustCertConfiguration trustCertificatePem = new PemTrustCertConfiguration(); | ||
|
||
/** | ||
* Trust configuration in the JKS format. | ||
* <p> | ||
* When enabled, {@code #trust-certificate-pem} and {@code #trust-certificate-pfx} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public JksConfiguration trustCertificateJks = new JksConfiguration(); | ||
|
||
/** | ||
* Trust configuration in the PFX format. | ||
* <p> | ||
* When enabled, {@code #trust-certificate-jks} and {@code #trust-certificate-pem} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public PfxConfiguration trustCertificatePfx = new PfxConfiguration(); | ||
|
||
/** | ||
* Key/cert configuration in the PEM format. | ||
* <p> | ||
* When enabled, {@code key-certificate-jks} and {@code #key-certificate-pfx} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public PemKeyCertConfiguration keyCertificatePem = new PemKeyCertConfiguration(); | ||
|
||
/** | ||
* Key/cert configuration in the JKS format. | ||
* <p> | ||
* When enabled, {@code #key-certificate-pem} and {@code #key-certificate-pfx} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public JksConfiguration keyCertificateJks = new JksConfiguration(); | ||
|
||
/** | ||
* Key/cert configuration in the PFX format. | ||
* <p> | ||
* When enabled, {@code key-certificate-jks} and {@code #key-certificate-pem} must be disabled. | ||
*/ | ||
@ConfigItem | ||
public PfxConfiguration keyCertificatePfx = new PfxConfiguration(); | ||
|
||
/** | ||
* The hostname verification algorithm to use in case the server's identity should be checked. | ||
* Should be HTTPS, LDAPS or an empty string. | ||
*/ | ||
@ConfigItem | ||
public Optional<String> hostnameVerificationAlgorithm = Optional.empty(); | ||
|
||
} |