Package io.quarkus.vertx.http.runtime
Class CertificateConfig
- java.lang.Object
-
- io.quarkus.vertx.http.runtime.CertificateConfig
-
public class CertificateConfig extends Object
A certificate configuration. Either the certificate and key files must be given, or a key store must be given.
-
-
Field Summary
Fields Modifier and Type Field Description Optional<String>credentialsProviderThe CredentialsProvider.Optional<String>credentialsProviderNameThe credentials provider bean name.Optional<Path>fileDeprecated.Usefilesinstead.Optional<List<Path>>filesThe list of path to server certificates using the PEM format.Optional<Path>keyFileDeprecated.UsekeyFilesinstead.Optional<List<Path>>keyFilesThe list of path to server certificates private key file using the PEM format.Optional<Path>keyStoreFileAn optional key store which holds the certificate information instead of specifying separate files.Optional<String>keyStoreFileTypeAn optional parameter to specify type of the key store file.Optional<String>keyStoreKeyAliasAn optional parameter to select a specific key in the key store.Optional<String>keyStoreKeyPasswordAn optional parameter to define the password for the key, in case it's different fromkeyStorePasswordIf not given then it may be retrieved from CredentialsProvider.Optional<String>keyStoreKeyPasswordKeyA parameter to specify a CredentialsProvider property key which can be used to get the password for the key from CredentialsProvider.Optional<String>keyStorePasswordA parameter to specify the password of the key store file.Optional<String>keyStorePasswordKeyA parameter to specify a CredentialsProvider property key which can be used to get the password of the key store file from CredentialsProvider.Optional<String>keyStoreProviderAn optional parameter to specify a provider of the key store file.Optional<String>trustStoreCertAliasAn optional parameter to trust only one specific certificate in the trust store (instead of trusting all certificates in the store).Optional<Path>trustStoreFileAn optional trust store which holds the certificate information of the certificates to trust.Optional<String>trustStoreFileTypeAn optional parameter to specify type of the trust store file.Optional<String>trustStorePasswordA parameter to specify the password of the trust store file.Optional<String>trustStorePasswordKeyA parameter to specify a CredentialsProvider property key which can be used to get the password of the trust store file from CredentialsProvider.Optional<String>trustStoreProviderAn optional parameter to specify a provider of the trust store file.
-
Constructor Summary
Constructors Constructor Description CertificateConfig()
-
-
-
Field Detail
-
credentialsProvider
@ConfigItem @ConvertWith(io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<String> credentialsProvider
The CredentialsProvider. If this property is configured then a matching 'CredentialsProvider' will be used to get the keystore, keystore key and truststore passwords unless these passwords have already been configured. Please note that using MicroProfile ConfigSource which is directly supported by Quarkus Configuration should be preferred unless using `CredentialsProvider` provides for some additional security and dynamism.
-
credentialsProviderName
@ConfigItem @ConvertWith(io.quarkus.runtime.configuration.TrimmedStringConverter.class) public Optional<String> credentialsProviderName
The credentials provider bean name.It is the
@Namedvalue of the credentials provider bean. It is used to discriminate if multiple CredentialsProvider beans are available. It is recommended to set this property even if there is only one credentials provider currently available to ensure the same provider is always found in deployments where more than one provider may be available.
-
file
@ConfigItem @Deprecated public Optional<Path> file
Deprecated.Usefilesinstead.The file path to a server certificate or certificate chain in PEM format.
-
files
@ConfigItem public Optional<List<Path>> files
The list of path to server certificates using the PEM format. Specifying multiple files require SNI to be enabled.
-
keyFile
@ConfigItem @Deprecated public Optional<Path> keyFile
Deprecated.UsekeyFilesinstead.The file path to the corresponding certificate private key file in PEM format.
-
keyFiles
@ConfigItem public Optional<List<Path>> keyFiles
The list of path to server certificates private key file using the PEM format. Specifying multiple files require SNI to be enabled. The order of the key files must match the order of the certificates.
-
keyStoreFile
@ConfigItem public Optional<Path> keyStoreFile
An optional key store which holds the certificate information instead of specifying separate files.
-
keyStoreFileType
@ConfigItem public Optional<String> keyStoreFileType
An optional parameter to specify type of the key store file. If not given, the type is automatically detected based on the file name.
-
keyStoreProvider
@ConfigItem public Optional<String> keyStoreProvider
An optional parameter to specify a provider of the key store file. If not given, the provider is automatically detected based on the key store file type.
-
keyStorePassword
@ConfigItem(defaultValueDocumentation="password") public Optional<String> keyStorePassword
A parameter to specify the password of the key store file. If not given, and if it can not be retrieved from CredentialsProvider, then the default ("password") is used.
-
keyStorePasswordKey
@ConfigItem public Optional<String> keyStorePasswordKey
A parameter to specify a CredentialsProvider property key which can be used to get the password of the key store file from CredentialsProvider.
-
keyStoreKeyAlias
@ConfigItem public Optional<String> keyStoreKeyAlias
An optional parameter to select a specific key in the key store. When SNI is disabled, if the key store contains multiple keys and no alias is specified, the behavior is undefined.
-
keyStoreKeyPassword
@ConfigItem public Optional<String> keyStoreKeyPassword
An optional parameter to define the password for the key, in case it's different fromkeyStorePasswordIf not given then it may be retrieved from CredentialsProvider.
-
keyStoreKeyPasswordKey
@ConfigItem public Optional<String> keyStoreKeyPasswordKey
A parameter to specify a CredentialsProvider property key which can be used to get the password for the key from CredentialsProvider.
-
trustStoreFile
@ConfigItem public Optional<Path> trustStoreFile
An optional trust store which holds the certificate information of the certificates to trust.
-
trustStoreFileType
@ConfigItem public Optional<String> trustStoreFileType
An optional parameter to specify type of the trust store file. If not given, the type is automatically detected based on the file name.
-
trustStoreProvider
@ConfigItem public Optional<String> trustStoreProvider
An optional parameter to specify a provider of the trust store file. If not given, the provider is automatically detected based on the trust store file type.
-
trustStorePassword
@ConfigItem public Optional<String> trustStorePassword
A parameter to specify the password of the trust store file. If not given then it may be retrieved from CredentialsProvider.
-
trustStorePasswordKey
@ConfigItem public Optional<String> trustStorePasswordKey
A parameter to specify a CredentialsProvider property key which can be used to get the password of the trust store file from CredentialsProvider.
-
trustStoreCertAlias
@ConfigItem public Optional<String> trustStoreCertAlias
An optional parameter to trust only one specific certificate in the trust store (instead of trusting all certificates in the store).
-
-