Package io.quarkus.tls.runtime.config
Interface TrustStoreConfig
public interface TrustStoreConfig
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe policy to apply when a certificate is expired. -
Method Summary
Modifier and TypeMethodDescriptionEnforce certificate expiration.The credential provider configuration for the trust store.jks()Configure the JKS trust store.other()Configure a trust store with an arbitrary type.p12()Configure the PKCS12 trust store.pem()Configures the list of trusted certificates.default void
-
Method Details
-
pem
Optional<PemCertsConfig> pem()Configures the list of trusted certificates. -
p12
Optional<P12TrustStoreConfig> p12()Configure the PKCS12 trust store. -
jks
Optional<JKSTrustStoreConfig> jks()Configure the JKS trust store. -
other
Optional<OtherTrustStoreConfig> other()Configure a trust store with an arbitrary type. Use this for trust store types not directly supported (e.g., BCFKS).Note that when using this option, the trust store can either be created using a path/password fallback or use a specific
TrustStoreFactoryimplementation. In the first case, the trust store will be created using the configured path and password. -
certificateExpirationPolicy
Enforce certificate expiration. When enabled, the certificate expiration date is verified and the certificate (or any certificate in the chain) is rejected if it is expired. -
credentialsProvider
TrustStoreCredentialProviderConfig credentialsProvider()The credential provider configuration for the trust store. A credential provider offers a way to retrieve the trust store password. Note that the credential provider is only used if the password is not set in the configuration. -
validate
default void validate(io.quarkus.arc.InstanceHandle<io.quarkus.tls.TrustStoreProvider> provider, String name)
-