Interface TlsConfig
public interface TlsConfig
-
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Whether SSL/TLS is enabled.The hostname verification algorithm to use in case the server's identity should be checked.Key/cert configuration in the JKS format.Key/cert configuration in the PEM format.Key/cert configuration in the PFX format.booleantrustAll()Enable trusting all certificates.Trust configuration in the JKS format.Trust configuration in the PEM format.Trust configuration in the PFX format.
-
Method Details
-
enabled
@WithDefault("false") boolean enabled()Whether SSL/TLS is enabled. -
trustAll
@WithDefault("false") boolean trustAll()Enable trusting all certificates. Disabled by default. -
trustCertificatePem
PemTrustCertConfiguration trustCertificatePem()Trust configuration in the PEM format.When enabled,
#trust-certificate-jksand#trust-certificate-pfxmust be disabled. -
trustCertificateJks
JksConfiguration trustCertificateJks()Trust configuration in the JKS format.When enabled,
#trust-certificate-pemand#trust-certificate-pfxmust be disabled. -
trustCertificatePfx
PfxConfiguration trustCertificatePfx()Trust configuration in the PFX format.When enabled,
#trust-certificate-jksand#trust-certificate-pemmust be disabled. -
keyCertificatePem
PemKeyCertConfiguration keyCertificatePem()Key/cert configuration in the PEM format.When enabled,
key-certificate-jksand#key-certificate-pfxmust be disabled. -
keyCertificateJks
JksConfiguration keyCertificateJks()Key/cert configuration in the JKS format.When enabled,
#key-certificate-pemand#key-certificate-pfxmust be disabled. -
keyCertificatePfx
PfxConfiguration keyCertificatePfx()Key/cert configuration in the PFX format.When enabled,
key-certificate-jksand#key-certificate-pemmust be disabled. -
hostnameVerificationAlgorithm
The hostname verification algorithm to use in case the server's identity should be checked. Should beHTTPS,LDAPSor anNONE(default).If set to
NONE, it does not verify the hostname.
-