public static class AuthProvider.TransitionalModePlainTextAuthenticator extends Object
In this situation, the client is allowed to connect without authentication, but DSE would still send an AUTHENTICATE response. This Authenticator handles this situation by sending back a dummy credential.
Constructor and Description |
---|
TransitionalModePlainTextAuthenticator() |
Modifier and Type | Method and Description |
---|---|
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.
|
public TransitionalModePlainTextAuthenticator()
public byte[] initialResponse()
Authenticator
initialResponse
in interface Authenticator
public byte[] evaluateChallenge(byte[] challenge)
Authenticator
evaluateChallenge
in interface Authenticator
challenge
- the server's SASL challengepublic void onAuthenticationSuccess(byte[] token)
Authenticator
onAuthenticationSuccess
in interface Authenticator
token
- the information sent by the server with the authentication successful message.
This will be null
if the server sends no particular information on authentication
success.Copyright © 2012–2020. All rights reserved.