public interface AuthProvider
Authenticator
instances for use when connecting to Cassandra nodes.
See PlainTextAuthProvider
for an implementation which uses SASL PLAIN mechanism to
authenticate using username/password strings
Modifier and Type | Field and Description |
---|---|
static AuthProvider |
NONE
A provider that provides no authentication capability.
|
Modifier and Type | Method and Description |
---|---|
Authenticator |
newAuthenticator(InetSocketAddress host,
String authenticator)
The
Authenticator to use when connecting to host |
static final AuthProvider NONE
This is only useful as a placeholder when no authentication is to be used.
Authenticator newAuthenticator(InetSocketAddress host, String authenticator) throws AuthenticationException
Authenticator
to use when connecting to host
host
- the Cassandra host to connect to.authenticator
- the configured authenticator on the host.AuthenticationException
Copyright © 2012–2018. All rights reserved.