Uses of Class
com.couchbase.client.core.env.PasswordAuthenticator.Builder
| Package | Description |
|---|---|
| com.couchbase.client.core.env |
-
Uses of PasswordAuthenticator.Builder in com.couchbase.client.core.env
Methods in com.couchbase.client.core.env that return PasswordAuthenticator.Builder Modifier and Type Method Description PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. allowedSaslMechanisms(Set<SaslMechanism> allowedSaslMechanisms)Allows to set a list of allowed SASL mechanisms for the NON-TLS connections.static PasswordAuthenticator.BuilderPasswordAuthenticator. builder()Creates a newPasswordAuthenticator.Builderwhich allows to customize this authenticator.PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. enablePlainSaslMechanism()This method acts as a shortcut toallowedSaslMechanisms(Set)which addsSaslMechanism.PLAINto the allowed mechanism list for NON TLS connections.PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. onlyEnablePlainSaslMechanism()This method will ONLY enable the PLAIN SASL mechanism (useful for LDAP enabled environments).PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. password(String password)Specifies a static password that will be used for all authentication purposes.PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. password(Supplier<String> password)Specifies a dynamic password that will be used for all authentication purposes.PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. username(String username)Specifies a static username that will be used for all authentication purposes.PasswordAuthenticator.BuilderPasswordAuthenticator.Builder. username(Supplier<String> username)Specifies a dynamic username that will be used for all authentication purposes.