Interface KeyStoreFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface KeyStoreFactory
A factory for creating KeyStoreAndKeyCertOptions from an other keystore configuration.

Implementations must be CDI beans annotated with @Identifier("<type>") where <type> matches the quarkus.tls.key-store.other.type value.

This method is never called on a Vert.x event loop thread. It is called on the main thread during application startup and on a worker thread during certificate reload. Blocking operations (file I/O, network calls, HSM access) are safe to perform.

  • Method Details

    • createKeyStore

      KeyStoreAndKeyCertOptions createKeyStore(OtherKeyStoreConfiguration config, io.vertx.core.Vertx vertx, String name)
      Creates the keystore and Vert.x options from the given configuration.

      This method is called on the main thread at startup and on a Vert.x worker thread during certificate reload. Blocking operations are safe.

      Parameters:
      config - the "other" keystore configuration
      vertx - the managed Vert.x instance
      name - the TLS bucket name (<default> for the default configuration)
      Returns:
      the keystore and options, must not be null