public interface Authenticator
Each time a new connection is created and the server requires authentication, a new instance
of this class will be created by the corresponding
AuthProvider to handle that
authentication. The lifecycle of that new
Authenticator will be:
initialResponsemethod will be called. The initial return value will be sent to the server to initiate the handshake.
evaluateChallengemethod will be called to produce a response that will be sent to the server. This challenge/response negotiation will continue until the server responds that authentication is successful (or an
onAuthenticationSuccessmethod will be called with the last information that the server may optionally have sent.
|Modifier and Type||Method and Description|
Evaluate a challenge received from the Server.
Obtain an initial response token for initializing the SASL handshake
Called when authentication is successful with the last information optionally sent by the server.
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
nullif the server sends no particular information on authentication success.
Copyright © 2012–2022. All rights reserved.