Package com.datastax.driver.core
Interface AuthProvider
-
- All Known Subinterfaces:
ExtendedAuthProvider
- All Known Implementing Classes:
ExtendedAuthProvider.NoAuthProvider,PlainTextAuthProvider
public interface AuthProviderProvidesAuthenticatorinstances for use when connecting to Cassandra nodes.See
PlainTextAuthProviderfor an implementation which uses SASL PLAIN mechanism to authenticate using username/password strings
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAuthProvider.TransitionalModePlainTextAuthenticatorDummy Authenticator that accounts for DSE authentication configured with transitional mode.
-
Field Summary
Fields Modifier and Type Field Description static AuthProviderNONEA provider that provides no authentication capability.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthenticatornewAuthenticator(InetSocketAddress host, String authenticator)TheAuthenticatorto use when connecting tohost
-
-
-
Field Detail
-
NONE
static final AuthProvider NONE
A provider that provides no authentication capability.This is only useful as a placeholder when no authentication is to be used.
-
-
Method Detail
-
newAuthenticator
Authenticator newAuthenticator(InetSocketAddress host, String authenticator) throws AuthenticationException
TheAuthenticatorto use when connecting tohost- Parameters:
host- the Cassandra host to connect to.authenticator- the configured authenticator on the host.- Returns:
- The authentication implementation to use.
- Throws:
AuthenticationException
-
-