Interface OtherTrustStoreConfig
- All Superinterfaces:
io.quarkus.tls.OtherTrustStoreConfiguration
The loading strategy depends on whether a TrustStoreFactory CDI bean annotated with
@Identifier("<type>") exists:
- Factory: If a
TrustStoreFactorybean 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 trust store type supported by the JVM or a registered security provider (e.g., BCFKS).
-
Method Summary
Modifier and TypeMethodDescriptionalias()Alias of the certificate in the trust store.params()Arbitrary parameters available to aTrustStoreFactoryCDI bean viaconfig.params().password()Password of the trust store.path()Path to the trust store file.provider()The Java security provider name, passed tojava.security.KeyStore.getInstance(type, provider).type()The trust store type, passed tojava.security.KeyStore.getInstance(type).
-
Method Details
-
type
String type()The trust store type, passed tojava.security.KeyStore.getInstance(type).This value also serves as the lookup key for a
TrustStoreFactoryCDI 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.OtherTrustStoreConfiguration
-
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.OtherTrustStoreConfiguration
-
path
Path to the trust 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.OtherTrustStoreConfiguration
-
password
Password of the trust 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 trust store.
- Specified by:
passwordin interfaceio.quarkus.tls.OtherTrustStoreConfiguration
-
alias
Alias of the certificate in the trust store.Used by the standard fallback to validate that a specific certificate exists. A factory may also read this value but is not required to.
- Specified by:
aliasin interfaceio.quarkus.tls.OtherTrustStoreConfiguration
-
params
Arbitrary parameters available to aTrustStoreFactoryCDI bean viaconfig.params().Ignored by the standard fallback. Set via
quarkus.tls.trust-store.other.params.<key>=<value>.- Specified by:
paramsin interfaceio.quarkus.tls.OtherTrustStoreConfiguration
-