Package io.quarkus.tls
Class BaseTlsConfiguration
java.lang.Object
io.quarkus.tls.BaseTlsConfiguration
- All Implemented Interfaces:
TlsConfiguration
A base implementation of the transport layer security configuration interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates 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.booleanreload()Reloads the configuration.booleanusesSni()Returns whether the key store is configured to use SNI.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.tls.TlsConfiguration
isTrustAll
-
Constructor Details
-
BaseTlsConfiguration
public BaseTlsConfiguration()
-
-
Method Details
-
getKeyStore
Returns the key store.- Specified by:
getKeyStorein interfaceTlsConfiguration- Returns:
- the key store if configured.
-
getKeyStoreOptions
public io.vertx.core.net.KeyCertOptions getKeyStoreOptions()Returns the key store options.- Specified by:
getKeyStoreOptionsin interfaceTlsConfiguration- Returns:
- the key store options if configured.
-
getTrustStore
Returns the trust store.- Specified by:
getTrustStorein interfaceTlsConfiguration- Returns:
- the trust store if configured.
-
getTrustStoreOptions
public io.vertx.core.net.TrustOptions getTrustStoreOptions()Returns the trust store options.- Specified by:
getTrustStoreOptionsin interfaceTlsConfiguration- Returns:
- the trust store options if configured.
-
getSSLOptions
public io.vertx.core.net.SSLOptions getSSLOptions()Returns the (Vert.x) SSL options.- Specified by:
getSSLOptionsin interfaceTlsConfiguration- Returns:
- the
SSLOptions,nullif not configured.
-
createSSLContext
Creates and returns the SSL Context.- Specified by:
createSSLContextin interfaceTlsConfiguration- Returns:
- the
SSLContext,nullif not configured. - Throws:
Exception- if the SSL Context cannot be created.
-
getHostnameVerificationAlgorithm
Returns 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()Returns 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()Reloads 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.
-