class PasswordAuthenticator implements Authenticator (View source)

Authenticator based on RBAC feature of Couchbase Server 5+.

This authenticator uses single credentials for all operations (data and management).

Methods

username(string $username)

Sets username

password(string $password)

Sets password

Details

PasswordAuthenticator username(string $username)

Sets username

Parameters

string $username username

Return Value

PasswordAuthenticator

PasswordAuthenticator password(string $password)

Sets password

Parameters

string $password password

Return Value

PasswordAuthenticator