Class Credential
java.lang.Object
com.couchbase.analytics.client.java.Credential
Create an instance like this:
Credential.of(username, password)
For advanced use cases involving dynamic credentials, see
ofDynamic(Supplier).
-
Method Summary
Modifier and TypeMethodDescriptionstatic CredentialReturns a new instance that holds the given username and password.static CredentialofDynamic(Supplier<Credential> supplier) Returns a new instance of a dynamic credential that invokes the given supplier every time a credential is required.
-
Method Details
-
of
Returns a new instance that holds the given username and password. -
ofDynamic
Returns a new instance of a dynamic credential that invokes the given supplier every time a credential is required.This enables updating a credential without having to restart your application.
-