Interface OtherKeyStoreConfig

All Superinterfaces:
io.quarkus.tls.OtherKeyStoreConfiguration

public interface OtherKeyStoreConfig extends io.quarkus.tls.OtherKeyStoreConfiguration
Configuration for a key store with an arbitrary type, used for key store formats not directly supported by the TLS registry (such as BCFKS or PKCS#11).

The loading strategy depends on whether a KeyStoreFactory CDI bean annotated with @Identifier("<type>") exists:

  • Factory: If a KeyStoreFactory bean matching the type() is found, it is always used. The factory receives this entire configuration, including params(). Use this for stores that require custom initialization, such as PKCS#11 hardware tokens or credential frameworks.
  • Standard fallback (file-backed): If no factory is found, the store is loaded using java.security.KeyStore.getInstance(type, provider) followed by keyStore.load(inputStream, password). In this case, path() is required. This works for any file-backed key store type supported by the JVM or a registered security provider (e.g., BCFKS).
  • Method Details

    • type

      String type()
      The key store type, passed to java.security.KeyStore.getInstance(type).

      This value also serves as the lookup key for a KeyStoreFactory CDI bean via @Identifier. If a matching factory is found, it takes priority over the standard file-based loading.

      Examples: BCFKS, PKCS11.

      Specified by:
      type in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • provider

      Optional<String> provider()
      The Java security provider name, passed to java.security.KeyStore.getInstance(type, provider).

      Used by the standard fallback loading. If not set, the default provider for the given type is used. A factory may also read this value but is not required to.

      Specified by:
      provider in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • path

      Optional<Path> path()
      Path to the key store file.

      Required when using the standard fallback (no factory). When a factory handles the loading, this value is available to the factory via this config but is not used by the TLS registry itself.

      Specified by:
      path in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • password

      Optional<String> password()
      Password of the key store.

      Used by the standard fallback to load the store. A factory may also read this value. When not set, the password can be retrieved from the credential provider configured on the parent key store.

      Specified by:
      password in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • alias

      Optional<String> alias()
      Alias of the private key and certificate in the key store.

      Used by the standard fallback to select and validate a specific entry. A factory may also read this value but is not required to.

      Specified by:
      alias in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • aliasPassword

      Optional<String> aliasPassword()
      Password of the alias in the key store.

      Used by the standard fallback to verify the private key is recoverable. When not set, the password can be retrieved from the credential provider configured on the parent key store.

      Specified by:
      aliasPassword in interface io.quarkus.tls.OtherKeyStoreConfiguration
    • params

      Map<String,String> params()
      Arbitrary parameters available to a KeyStoreFactory CDI bean via config.params().

      Ignored by the standard fallback. Set via quarkus.tls.key-store.other.params.<key>=<value>.

      Specified by:
      params in interface io.quarkus.tls.OtherKeyStoreConfiguration