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: Dse
Assembly: Dse.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 |
---|---|---|
System.Byte[] | challenge | the server's SASL challenge' |
Returns
Type | Description |
---|---|
System.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 |
---|---|
System.Byte[] | the initial response to send to the server, may be null |