-
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.
Merge pull request #17714 from antoniodvr/issue-17673
17673 - Propagate Quarkus Redis Config to Vertx Redis Client
- Loading branch information
Showing
3 changed files
with
177 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. Disabled 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; | ||
|
||
/** | ||
* 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; | ||
|
||
/** | ||
* 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; | ||
|
||
/** | ||
* 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; | ||
|
||
/** | ||
* 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; | ||
|
||
/** | ||
* 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; | ||
|
||
/** | ||
* 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; | ||
|
||
} |