Provides plain text Authenticator instances to be used when connecting to a host.

Augments

Constructor

new

PlainTextAuthProvider

(String username, String password)

Creates a new instance of the Authenticator provider

Examples:
var authProvider = new cassandra.auth.PlainTextAuthProvider('my_user', 'p@ssword1!');
//Set the auth provider in the clientOptions when creating the Client instance
var client = new Client({ contactPoints: contactPoints, authProvider: authProvider });
Parameters:
Name Type Description
username String

User name in plain text

password String

Password in plain text

Methods

newAuthenticator

(String endpoint, String name)

Returns a new Authenticator instance to be used for plain text authentication.

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