Interface IAuthenticator
Handles SASL authentication with Cassandra servers. A server which requires
authentication responds to a startup message with an challenge in the form of
an AuthenticateMessage
. Authenticator implementations should be
able to respond to that challenge and perform whatever authentication
negotiation is required by the server. The exact nature of that negotiation
is specific to the configuration of the server.
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public interface IAuthenticator
Methods
EvaluateChallenge(byte[])
Evaluate a challenge received from the Server. Generally, this method should return null when authentication is complete from the client perspective
Declaration
byte[] EvaluateChallenge(byte[] challenge)
Parameters
Type | Name | Description |
---|---|---|
byte[] | challenge | the server's SASL challenge' |
Returns
Type | Description |
---|---|
byte[] | updated SASL token, may be null to indicate the client requires no further action |
InitialResponse()
Obtain an initial response token for initializing the SASL handshake
Declaration
byte[] InitialResponse()
Returns
Type | Description |
---|---|
byte[] | the initial response to send to the server, may be null |