AuthProvider that provides plain text authenticator instances for clients to connect to DSE clusters secured with the DseAuthenticator.

Augments

  • AuthProvider

Constructor

new

DsePlainTextAuthProvider

(String username, String password, [String authorizationId])

Creates a new instance of DsePlainTextAuthProvider.

Examples:
const client = new cassandra.Client({
  contactPoints: ['h1', 'h2'],
  authProvider: new cassandra.auth.DsePlainTextAuthProvider('user', 'p@ssword1');
});
Parameters:
Name Type Description
username String

The username; cannot be null.

password String

The password; cannot be null.

authorizationId optional String

The optional authorization ID. Providing an authorization ID allows the currently authenticated user to act as a different user (a.k.a. proxy authentication).

Methods

newAuthenticator

(String endpoint, String name)

Returns an Authenticator instance to be used by the driver when connecting to a host.

Parameters:
Name Type Description
endpoint String

The IP address and port number in the format ip:port.

name String

Authenticator name.

Returns:
Type Description
Authenticator