Class: Authenticator

auth~ Authenticator

Constructor

new Authenticator()

Handles SASL authentication with Cassandra servers. Each time a new connection is created and the server requires authentication, a new instance of this class will be created by the corresponding.

Methods

evaluateChallenge(challenge, callback)

Evaluates a challenge received from the Server. Generally, this method should callback with no error and no additional params when authentication is complete from the client perspective.
Parameters:
Name Type Description
challenge Buffer
callback function

initialResponse(callback)

Obtain an initial response token for initializing the SASL handshake.
Parameters:
Name Type Description
callback function

onAuthenticationSuccess(tokenopt)

Called when authentication is successful with the last information optionally sent by the server.
Parameters:
Name Type Attributes Description
token Buffer <optional>