public class DseAuthProvider extends Object implements AuthProvider
dse.sasl.protocol system property.
Keytab and ticket cache settings are specified using a standard JAAS
configuration file. The location of the file can be set using the
java.security.auth.login.config system property or by adding a
login.config.url.n entry in the java.security properties
file.
See the following documents for further details on the JAAS Login Configuration File and the JAAS Authentication Tutorial for more on JAAS in general.
kinit to obtain a ticket and populate the cache before
connecting. JAAS config:
DseClient {
com.sun.security.auth.module.Krb5LoginModule required
useTicketCache=true
renewTGT=true;
};
DseClient {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="/path/to/file.keytab"
principal="user@MYDOMAIN.COM";
};
To connect to clusters using internal authentication, use the standard method for
setting credentials. eg:
Cluster cluster = Cluster.builder()
.addContactPoint(hostname)
.withCredentials("username", "password")
.build();
NONE| Constructor and Description |
|---|
DseAuthProvider() |
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
newAuthenticator(InetSocketAddress host)
The
Authenticator to use when connecting to host |
public Authenticator newAuthenticator(InetSocketAddress host) throws AuthenticationException
AuthProviderAuthenticator to use when connecting to hostnewAuthenticator in interface AuthProviderhost - the Cassandra host to connect to.AuthenticationExceptionCopyright © 2012–2015. All rights reserved.