|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Authenticator
Handles SASL authentication with Cassandra servers.
Each time a new connection is created and the server require authentication,
a new instance of this class will be created by the corresponding
AuthProvider
to handler that authentication. The lifecycle of that
new Authenticator
will the be:
initialResponse
method will be called. The return initial
value will be send to the server to initiate the handshake.evaluateChallenge
method will be called to produce a response that will be sent to the
server. This challenge/reponse negotiation will continue until the server
respond that authentication is succesfull (or an AuthenticationException
is raised).
onAuthenticationSucces
method will be call with last informations
that the server may optionally have sent.
Method Summary | |
---|---|
byte[] |
evaluateChallenge(byte[] challenge)
Evaluate a challenge received from the Server. |
byte[] |
initialResponse()
Obtain an initial response token for initializing the SASL handshake |
void |
onAuthenticationSuccess(byte[] token)
Called when authentication is successful with the last information optionally sent by the server. |
Method Detail |
---|
byte[] initialResponse()
byte[] evaluateChallenge(byte[] challenge)
challenge
- the server's SASL challenge
void onAuthenticationSuccess(byte[] token)
token
- the information sent by the server with the authentication
successful message. This will be null
if the server send no
particular information on authentication success.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |