Uses of Class
com.couchbase.client.core.env.SecurityConfig.Builder
-
Uses of SecurityConfig.Builder in com.couchbase.client.core.env
Modifier and TypeMethodDescriptionstatic SecurityConfig.Builder
SecurityConfig.builder()
Creates a builder to customize theSecurityConfig
configuration.Allows to customize the list of ciphers that is negotiated with the cluster.static SecurityConfig.Builder
Allows to customize the list of ciphers that is negotiated with the cluster.SecurityConfig.Builder.enableCertificateVerification
(boolean certificateVerificationEnabled) Pass false to bypass all TLS certificate verification checks.SecurityConfig.Builder.enableHostnameVerification
(boolean hostnameVerificationEnabled) Allows to enable or disable hostname verification (enabled by default).static SecurityConfig.Builder
SecurityConfig.enableHostnameVerification
(boolean hostnameVerificationEnabled) Allows enabling or disabling hostname verification (enabled by default).SecurityConfig.Builder.enableNativeTls
(boolean nativeTlsEnabled) Enables/disables native TLS (enabled by default).static SecurityConfig.Builder
SecurityConfig.enableNativeTls
(boolean nativeTlsEnabled) Enables/disables native TLS (enabled by default).SecurityConfig.Builder.enableTls
(boolean tlsEnabled) Enables TLS for all client/server communication (disabled by default).static SecurityConfig.Builder
SecurityConfig.enableTls
(boolean tlsEnabled) Enables TLS for all client/server communication (disabled by default).CoreEnvironment.Builder.securityConfig()
Returns the currently stored config builder.SecurityConfig.Builder.trustCertificate
(Path certificatePath) Loads X.509 certificates from the file at the given path into the trust store.static SecurityConfig.Builder
SecurityConfig.trustCertificate
(Path certificatePath) Loads X.509 certificates from the specified file into the trust store.SecurityConfig.Builder.trustCertificates
(List<X509Certificate> certificates) Loads the given list of X.509 certificates into the trust store.static SecurityConfig.Builder
SecurityConfig.trustCertificates
(List<X509Certificate> certificates) Loads the given list of X.509 certificates into the trust store.SecurityConfig.Builder.trustManagerFactory
(TrustManagerFactory trustManagerFactory) Allows to provide a trust manager factory directly for maximum flexibility.static SecurityConfig.Builder
SecurityConfig.trustManagerFactory
(TrustManagerFactory trustManagerFactory) Allows to provide a trust manager factory directly for maximum flexibility.SecurityConfig.Builder.trustStore
(Path trustStorePath, String trustStorePassword, Optional<String> trustStoreType) Loads a trust store from a file path and password and initializes theTrustManagerFactory
.SecurityConfig.Builder.trustStore
(KeyStore trustStore) Initializes theTrustManagerFactory
with the given trust store.static SecurityConfig.Builder
SecurityConfig.trustStore
(Path trustStorePath, String trustStorePassword, Optional<String> trustStoreType) Loads a trust store from a file path and password and initializes theTrustManagerFactory
.static SecurityConfig.Builder
SecurityConfig.trustStore
(KeyStore trustStore) Initializes theTrustManagerFactory
with the given trust store.Modifier and TypeMethodDescriptionCoreEnvironment.Builder.securityConfig
(SecurityConfig.Builder securityConfig) Deprecated.Modifier and TypeMethodDescriptionCoreEnvironment.Builder.securityConfig
(Consumer<SecurityConfig.Builder> builderConsumer) Allows to configure theSecurityConfig
through a provided builder.
CoreEnvironment.Builder.securityConfig(Consumer)
instead.