Interface TlsConfig
public interface TlsConfig
-
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.booleanReturns whether the trust store is configured to trust all certificates.booleanusesSni()Returns whether the key store is configured to use SNI.
-
Method Details
-
getKeyStore
KeyStore getKeyStore()Returns the key store.- Returns:
- the key store if configured.
-
getKeyStoreOptions
io.vertx.core.net.KeyCertOptions getKeyStoreOptions()Returns the key store options.- Returns:
- the key store options if configured.
-
getTrustStore
KeyStore getTrustStore()Returns the trust store.- Returns:
- the trust store if configured.
-
getTrustStoreOptions
io.vertx.core.net.TrustOptions getTrustStoreOptions()Returns the trust store options.- Returns:
- the trust store options if configured.
-
getSSLOptions
io.vertx.core.net.SSLOptions getSSLOptions()Returns the (Vert.x) SSL options.- Returns:
- the
SSLOptions,nullif not configured.
-
createSSLContext
Creates and returns the SSL Context.- 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.- Returns:
- the hostname verification algorithm.
-
usesSni
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.- Returns:
trueif the key store is configured to use SNI,falseotherwise.
-
isTrustAll
boolean isTrustAll()Returns whether the trust store is configured to trust all certificates.- Returns:
trueif the trust store is configured to trust all certificates,falseotherwise.
-