Package com.couchbase.client.dcp
Class SecurityConfig
java.lang.Object
com.couchbase.client.dcp.SecurityConfig
TLS options. Create a new instance via
builder()
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This builder allows to customize the default security configuration. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecurityConfig.Builder
builder()
Creates a builder to customize theSecurityConfig
configuration.static List
<X509Certificate> decodeCertificates
(List<String> certificates) Helper method to decode string-encoded certificates into their x.509 format.boolean
True if TLS hostname verification is enabled, false otherwise.boolean
Returns whether native TLS is enabled.boolean
True if TLS is enabled, false otherwise.toString()
The list of trust certificates that should be used, if present.The currently configured trust manager factory, if present.
-
Method Details
-
builder
Creates a builder to customize theSecurityConfig
configuration.- Returns:
- the builder to customize.
-
tlsEnabled
public boolean tlsEnabled()True if TLS is enabled, false otherwise.- Returns:
- a boolean if tls/transport encryption is enabled.
-
hostnameVerificationEnabled
public boolean hostnameVerificationEnabled()True if TLS hostname verification is enabled, false otherwise. -
trustCertificates
The list of trust certificates that should be used, if present.- Returns:
- the list of certificates.
-
trustManagerFactory
The currently configured trust manager factory, if present.- Returns:
- the trust manager factory.
-
nativeTlsEnabled
public boolean nativeTlsEnabled()Returns whether native TLS is enabled.- Returns:
- true if enabled, false otherwise.
-
toString
-
decodeCertificates
Helper method to decode string-encoded certificates into their x.509 format.- Parameters:
certificates
- the string-encoded certificates.- Returns:
- the decoded certs in x.509 format.
-