Interface OtherKeyStoreConfig
- All Superinterfaces:
io.quarkus.tls.OtherKeyStoreConfiguration
The loading strategy depends on whether a KeyStoreFactory CDI bean annotated with
@Identifier("<type>") exists:
- Factory: If a
KeyStoreFactorybean matching thetype()is found, it is always used. The factory receives this entire configuration, includingparams(). 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 bykeyStore.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 Summary
Modifier and TypeMethodDescriptionalias()Alias of the private key and certificate in the key store.Password of the alias in the key store.params()Arbitrary parameters available to aKeyStoreFactoryCDI bean viaconfig.params().password()Password of the key store.path()Path to the key store file.provider()The Java security provider name, passed tojava.security.KeyStore.getInstance(type, provider).type()The key store type, passed tojava.security.KeyStore.getInstance(type).
-
Method Details
-
type
String type()The key store type, passed tojava.security.KeyStore.getInstance(type).This value also serves as the lookup key for a
KeyStoreFactoryCDI bean via@Identifier. If a matching factory is found, it takes priority over the standard file-based loading.Examples:
BCFKS,PKCS11.- Specified by:
typein interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
provider
The Java security provider name, passed tojava.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:
providerin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
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:
pathin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
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:
passwordin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
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:
aliasin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
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:
aliasPasswordin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-
params
Arbitrary parameters available to aKeyStoreFactoryCDI bean viaconfig.params().Ignored by the standard fallback. Set via
quarkus.tls.key-store.other.params.<key>=<value>.- Specified by:
paramsin interfaceio.quarkus.tls.OtherKeyStoreConfiguration
-