Package io.quarkus.tls.runtime
Class VertxCertificateHolder
java.lang.Object
io.quarkus.tls.runtime.VertxCertificateHolder
- All Implemented Interfaces:
TlsConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionVertxCertificateHolder(io.vertx.core.Vertx vertx, String name, TlsBucketConfig config, KeyStoreAndKeyCertOptions ks, TrustStoreAndTrustOptions ts) -
Method Summary
Modifier and TypeMethodDescriptionconfig()Creates and returns the SSL Context.Returns the hostname verification algorithm for this configuration.Returns the key store.io.vertx.core.net.KeyCertOptionsReturns the key store options.io.vertx.core.net.SSLOptionsReturns the (Vert.x) SSL options.Returns the trust store.io.vertx.core.net.TrustOptionsReturns the trust store options.booleanReturns whether the trust store is configured to trust all certificates.booleanreload()Reloads the configuration.booleanusesSni()Returns whether the key store is configured to use SNI.
-
Constructor Details
-
VertxCertificateHolder
VertxCertificateHolder(io.vertx.core.Vertx vertx, String name, TlsBucketConfig config, KeyStoreAndKeyCertOptions ks, TrustStoreAndTrustOptions ts)
-
-
Method Details
-
getKeyStoreOptions
public io.vertx.core.net.KeyCertOptions getKeyStoreOptions()Description copied from interface:TlsConfigurationReturns the key store options.- Specified by:
getKeyStoreOptionsin interfaceTlsConfiguration- Returns:
- the key store options if configured.
-
getKeyStore
Description copied from interface:TlsConfigurationReturns the key store.- Specified by:
getKeyStorein interfaceTlsConfiguration- Returns:
- the key store if configured.
-
getTrustStoreOptions
public io.vertx.core.net.TrustOptions getTrustStoreOptions()Description copied from interface:TlsConfigurationReturns the trust store options.- Specified by:
getTrustStoreOptionsin interfaceTlsConfiguration- Returns:
- the trust store options if configured.
-
getTrustStore
Description copied from interface:TlsConfigurationReturns the trust store.- Specified by:
getTrustStorein interfaceTlsConfiguration- Returns:
- the trust store if configured.
-
createSSLContext
Description copied from interface:TlsConfigurationCreates and returns the SSL Context.- Specified by:
createSSLContextin interfaceTlsConfiguration- Returns:
- the
SSLContext,nullif not configured. - Throws:
Exception- if the SSL Context cannot be created.
-
getSSLOptions
public io.vertx.core.net.SSLOptions getSSLOptions()Description copied from interface:TlsConfigurationReturns the (Vert.x) SSL options.- Specified by:
getSSLOptionsin interfaceTlsConfiguration- Returns:
- the
SSLOptions,nullif not configured.
-
isTrustAll
public boolean isTrustAll()Description copied from interface:TlsConfigurationReturns whether the trust store is configured to trust all certificates.- Specified by:
isTrustAllin interfaceTlsConfiguration- Returns:
trueif the trust store is configured to trust all certificates,falseotherwise.
-
getHostnameVerificationAlgorithm
Description copied from interface:TlsConfigurationReturns the hostname verification algorithm for this configuration."NONE"means no hostname verification.- Specified by:
getHostnameVerificationAlgorithmin interfaceTlsConfiguration- Returns:
- the hostname verification algorithm.
-
usesSni
public boolean usesSni()Description copied from interface:TlsConfigurationReturns whether the key store is configured to use SNI. When SNI is used, the client indicate the server name during the TLS handshake, allowing the server to select the right certificate.- Specified by:
usesSniin interfaceTlsConfiguration- Returns:
trueif the key store is configured to use SNI,falseotherwise.
-
reload
public boolean reload()Description copied from interface:TlsConfigurationReloads the configuration. It usually means reloading the key store and trust store, especially when they are files.- Specified by:
reloadin interfaceTlsConfiguration- Returns:
trueif the configuration has been reloaded,falseotherwise.
-
config
-