| Package | Description |
|---|---|
| com.couchbase.client.core.env |
| Modifier and Type | Method and Description |
|---|---|
static SecurityConfig.Builder |
SecurityConfig.builder()
Deprecated.
Instead of creating a new builder, please use
CoreEnvironment.Builder.securityConfig(Consumer)
and configure the builder passed to the consumer.
Note: CoreEnvironment is a base class; you'll
probably call that method via a subclass named
ClusterEnvironment. |
static SecurityConfig.Builder |
SecurityConfig.ciphers(List<String> ciphers)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.ciphers(List<String> ciphers)
Allows to customize the list of ciphers that is negotiated with the cluster.
|
SecurityConfig.Builder |
SecurityConfig.Builder.enableCertificateVerification(boolean certificateVerificationEnabled)
Pass false to bypass all TLS certificate verification checks.
|
static SecurityConfig.Builder |
SecurityConfig.enableHostnameVerification(boolean hostnameVerificationEnabled)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.enableHostnameVerification(boolean hostnameVerificationEnabled)
Allows to enable or disable hostname verification (enabled by default).
|
static SecurityConfig.Builder |
SecurityConfig.enableNativeTls(boolean nativeTlsEnabled)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.enableNativeTls(boolean nativeTlsEnabled)
Enables/disables native TLS (enabled by default).
|
static SecurityConfig.Builder |
SecurityConfig.enableTls(boolean tlsEnabled)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.enableTls(boolean tlsEnabled)
Enables TLS for all client/server communication (disabled by default).
|
SecurityConfig.Builder |
CoreEnvironment.Builder.securityConfig()
Returns the currently stored config builder.
|
static SecurityConfig.Builder |
SecurityConfig.trustCertificate(Path certificatePath)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.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.trustCertificates(List<X509Certificate> certificates)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.trustCertificates(List<X509Certificate> certificates)
Loads the given list of X.509 certificates into the trust store.
|
static SecurityConfig.Builder |
SecurityConfig.trustManagerFactory(TrustManagerFactory trustManagerFactory)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.trustManagerFactory(TrustManagerFactory trustManagerFactory)
Allows to provide a trust manager factory directly for maximum flexibility.
|
static SecurityConfig.Builder |
SecurityConfig.trustStore(KeyStore trustStore)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.trustStore(KeyStore trustStore)
Initializes the
TrustManagerFactory with the given trust store. |
static SecurityConfig.Builder |
SecurityConfig.trustStore(Path trustStorePath,
String trustStorePassword,
Optional<String> trustStoreType)
Deprecated.
This method creates a new builder. Please see the deprecation notice on
SecurityConfig.builder(). |
SecurityConfig.Builder |
SecurityConfig.Builder.trustStore(Path trustStorePath,
String trustStorePassword,
Optional<String> trustStoreType)
Loads a trust store from a file path and password and initializes the
TrustManagerFactory. |
| Modifier and Type | Method and Description |
|---|---|
SELF |
CoreEnvironment.Builder.securityConfig(SecurityConfig.Builder securityConfig)
Deprecated.
This method clobbers any previously configured values. Please use
CoreEnvironment.Builder.securityConfig(Consumer) instead. |
| Modifier and Type | Method and Description |
|---|---|
SELF |
CoreEnvironment.Builder.securityConfig(Consumer<SecurityConfig.Builder> builderConsumer)
Passes the
SecurityConfig.Builder to the provided consumer. |
Copyright © 2024 Couchbase, Inc.. All rights reserved.