Class VertxCertificateHolder

java.lang.Object
io.quarkus.tls.runtime.VertxCertificateHolder
All Implemented Interfaces:
TlsConfiguration

public class VertxCertificateHolder extends Object implements TlsConfiguration
  • Constructor Details

  • Method Details

    • getKeyStoreOptions

      public io.vertx.core.net.KeyCertOptions getKeyStoreOptions()
      Description copied from interface: TlsConfiguration
      Returns the key store options.
      Specified by:
      getKeyStoreOptions in interface TlsConfiguration
      Returns:
      the key store options if configured.
    • getKeyStore

      public KeyStore getKeyStore()
      Description copied from interface: TlsConfiguration
      Returns the key store.
      Specified by:
      getKeyStore in interface TlsConfiguration
      Returns:
      the key store if configured.
    • getTrustStoreOptions

      public io.vertx.core.net.TrustOptions getTrustStoreOptions()
      Description copied from interface: TlsConfiguration
      Returns the trust store options.
      Specified by:
      getTrustStoreOptions in interface TlsConfiguration
      Returns:
      the trust store options if configured.
    • getTrustStore

      public KeyStore getTrustStore()
      Description copied from interface: TlsConfiguration
      Returns the trust store.
      Specified by:
      getTrustStore in interface TlsConfiguration
      Returns:
      the trust store if configured.
    • createSSLContext

      public SSLContext createSSLContext() throws Exception
      Description copied from interface: TlsConfiguration
      Creates and returns the SSL Context.
      Specified by:
      createSSLContext in interface TlsConfiguration
      Returns:
      the SSLContext, null if not configured.
      Throws:
      Exception - if the SSL Context cannot be created.
    • getSSLOptions

      public io.vertx.core.net.SSLOptions getSSLOptions()
      Description copied from interface: TlsConfiguration
      Returns the (Vert.x) SSL options.
      Specified by:
      getSSLOptions in interface TlsConfiguration
      Returns:
      the SSLOptions, null if not configured.
    • isTrustAll

      public boolean isTrustAll()
      Description copied from interface: TlsConfiguration
      Returns whether the trust store is configured to trust all certificates.
      Specified by:
      isTrustAll in interface TlsConfiguration
      Returns:
      true if the trust store is configured to trust all certificates, false otherwise.
    • getHostnameVerificationAlgorithm

      public Optional<String> getHostnameVerificationAlgorithm()
      Description copied from interface: TlsConfiguration
      Returns the hostname verification algorithm for this configuration. "NONE" means no hostname verification.
      Specified by:
      getHostnameVerificationAlgorithm in interface TlsConfiguration
      Returns:
      the hostname verification algorithm.
    • usesSni

      public boolean usesSni()
      Description copied from interface: TlsConfiguration
      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:
      usesSni in interface TlsConfiguration
      Returns:
      true if the key store is configured to use SNI, false otherwise.
    • reload

      public boolean reload()
      Description copied from interface: TlsConfiguration
      Reloads the configuration. It usually means reloading the key store and trust store, especially when they are files.
      Specified by:
      reload in interface TlsConfiguration
      Returns:
      true if the configuration has been reloaded, false otherwise.
    • config

      public TlsBucketConfig config()