public interface AuthProvider extends AutoCloseable
Authenticatorinstances to use when connecting to Cassandra nodes.
PlainTextAuthProvider for an implementation which uses SASL PLAIN mechanism to
authenticate using username/password strings.
|Modifier and Type||Method and Description|
The authenticator to use when connecting to
What to do if the server does not send back an authentication challenge (in other words, lets the client connect without any form of authentication).
@NonNull Authenticator newAuthenticator(@NonNull EndPoint endPoint, @NonNull String serverAuthenticator) throws AuthenticationException
endPoint- the Cassandra host to connect to.
serverAuthenticator- the configured authenticator on the host.
void onMissingChallenge(@NonNull EndPoint endPoint) throws AuthenticationException
This is suspicious because having authentication enabled on the client but not on the server is probably a configuration mistake.
Provider implementations are free to handle this however they want; typical approaches are:
Copyright © 2017–2022. All rights reserved.