Package com.couchbase.client.core.env
Class DelegatingAuthenticator
java.lang.Object
com.couchbase.client.core.env.AuthenticatorWrapper
com.couchbase.client.core.env.DelegatingAuthenticator
- All Implemented Interfaces:
Authenticator
Delegates authentication to another authenticator.
The other authenticator can be swapped at runtime to support credential rotation.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DelegatingAuthenticatorcreate(boolean tls, Authenticator delegate) Returns a new authenticator that delegates to the given authenticator.voidsetDelegate(Authenticator delegate) toString()wrapped()Methods inherited from class com.couchbase.client.core.env.AuthenticatorWrapper
applyTlsProperties, authHttpRequest, authKeyValueConnection, getAuthHeaderValue, getSingleStepSaslAuthParameters, requiresTls
-
Method Details
-
create
Returns a new authenticator that delegates to the given authenticator.The delegate may be updated later by calling
setDelegate(Authenticator).- Parameters:
tls- true if the connection is secured by TLS, otherwise false.
-
setDelegate
-
wrapped
- Specified by:
wrappedin classAuthenticatorWrapper
-
toString
-