Package com.couchbase.client.core.env
Class PasswordAuthenticator.Builder
- java.lang.Object
-
- com.couchbase.client.core.env.PasswordAuthenticator.Builder
-
- Enclosing class:
- PasswordAuthenticator
public static class PasswordAuthenticator.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordAuthenticator.Builder
allowedSaslMechanisms(Set<SaslMechanism> allowedSaslMechanisms)
Allows to set a list of allowed SASL mechanisms for the NON-TLS connections.PasswordAuthenticator
build()
PasswordAuthenticator.Builder
password(String password)
PasswordAuthenticator.Builder
password(Supplier<String> password)
PasswordAuthenticator.Builder
username(String username)
PasswordAuthenticator.Builder
username(Supplier<String> username)
-
-
-
Method Detail
-
username
public PasswordAuthenticator.Builder username(String username)
-
username
public PasswordAuthenticator.Builder username(Supplier<String> username)
-
password
public PasswordAuthenticator.Builder password(String password)
-
password
public PasswordAuthenticator.Builder password(Supplier<String> password)
-
allowedSaslMechanisms
public PasswordAuthenticator.Builder allowedSaslMechanisms(Set<SaslMechanism> allowedSaslMechanisms)
Allows to set a list of allowed SASL mechanisms for the NON-TLS connections.- Parameters:
allowedSaslMechanisms
- the list of allowed sasl mechs for non-tls connections
-
build
public PasswordAuthenticator build()
-
-