Interface TrustStoreFactory

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 TrustStoreFactory
A factory for creating TrustStoreAndTrustOptions from an other truststore configuration.

Implementations must be CDI beans annotated with @Identifier("<type>") where <type> matches the quarkus.tls.trust-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

    • createTrustStore

      TrustStoreAndTrustOptions createTrustStore(OtherTrustStoreConfiguration config, io.vertx.core.Vertx vertx, String name)
      Creates the truststore 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" truststore configuration
      vertx - the managed Vert.x instance
      name - the TLS bucket name (<default> for the default configuration)
      Returns:
      the truststore and options, must not be null