Class TrustSource
java.lang.Object
com.couchbase.columnar.client.java.internal.TrustSource
Either a
TrustManagerFactory
XOR a list of X509Certificate
.-
Method Summary
Modifier and TypeMethodDescription@Nullable List
<X509Certificate> static TrustSource
Returns a new instance that trusts the certificates in the specified PEM file.static TrustSource
from
(List<X509Certificate> certificates) Returns a new instance that trusts the specified certificates.static TrustSource
from
(TrustManagerFactory factory) Returns a new instance backed by the specified factory.static TrustSource
fromJvm()
Returns a new instance that trusts the certificate authorities trusted by this Java runtime environment.static TrustSource
insecure()
Returns a new instance that does not verify server certificates.toString()
@Nullable TrustManagerFactory
-
Method Details
-
fromJvm
Returns a new instance that trusts the certificate authorities trusted by this Java runtime environment. -
from
Returns a new instance that trusts the certificates in the specified PEM file. -
from
Returns a new instance that trusts the specified certificates. -
from
Returns a new instance backed by the specified factory. -
insecure
Returns a new instance that does not verify server certificates. -
certificates
-
trustManagerFactory
-
toString
-