public class CertificateAuthenticator extends Object implements Authenticator
Modifier and Type | Method and Description |
---|---|
void |
applyTlsProperties(com.couchbase.client.core.deps.io.netty.handler.ssl.SslContextBuilder context)
The authenticator gets the chance to attach the client certificate to the ssl context if needed.
|
static CertificateAuthenticator |
fromKey(PrivateKey key,
String keyPassword,
List<X509Certificate> keyCertChain) |
static CertificateAuthenticator |
fromKeyManagerFactory(Supplier<KeyManagerFactory> keyManagerFactory) |
boolean |
supportsNonTls()
If this authenticator supports non-encrypted connections.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
authHttpRequest, authKeyValueConnection, supportsTls
public static CertificateAuthenticator fromKeyManagerFactory(Supplier<KeyManagerFactory> keyManagerFactory)
public static CertificateAuthenticator fromKey(PrivateKey key, String keyPassword, List<X509Certificate> keyCertChain)
public void applyTlsProperties(com.couchbase.client.core.deps.io.netty.handler.ssl.SslContextBuilder context)
Authenticator
applyTlsProperties
in interface Authenticator
context
- the netty context builderpublic boolean supportsNonTls()
Authenticator
supportsNonTls
in interface Authenticator
Copyright © 2020 Couchbase, Inc.. All rights reserved.