| Modifier and Type | Class and Description |
|---|---|
static class |
SecurityConfig.Builder
This builder allows to customize the default security configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static SecurityConfig.Builder |
builder()
Creates a builder to customize the
SecurityConfig configuration. |
static List<X509Certificate> |
decodeCertificates(List<String> certificates)
Helper method to decode string-encoded certificates into their x.509 format.
|
boolean |
hostnameVerificationEnabled()
True if TLS hostname verification is enabled, false otherwise.
|
boolean |
nativeTlsEnabled()
Returns whether native TLS is enabled.
|
boolean |
tlsEnabled()
True if TLS is enabled, false otherwise.
|
String |
toString() |
List<X509Certificate> |
trustCertificates()
The list of trust certificates that should be used, if present.
|
TrustManagerFactory |
trustManagerFactory()
The currently configured trust manager factory, if present.
|
public static SecurityConfig.Builder builder()
SecurityConfig configuration.public boolean tlsEnabled()
public boolean hostnameVerificationEnabled()
public List<X509Certificate> trustCertificates()
public TrustManagerFactory trustManagerFactory()
public boolean nativeTlsEnabled()
public static List<X509Certificate> decodeCertificates(List<String> certificates)
certificates - the string-encoded certificates.Copyright © 2021 Couchbase, Inc.. All rights reserved.