Contents
- Usage page
-
API docs index
-
Cassandra module
- AddressResolution module
- AttrBoolean module
- Auth module
- Compression module
- CustomData module
- Error module
- Errors module
- Execution module
- LoadBalancing module
- Reconnection module
- Retry module
- Statement module
- Statements module
- TimestampGenerator module
- Types module
- Aggregate class
- Argument class
- Cluster class
- Column class
- ColumnContainer class
- Function class
- Future class
- Host class
- Index class
- Keyspace class
- Listener class
- Logger class
- MaterializedView class
- Result class
- Session class
- Table class
- Time class
- TimeUuid class
- Trigger class
- Tuple class
- Type class
- UDT class
- Uuid class
-
Cassandra module
Auth provider used for Cassandra’s built in authentication.
- Note
- No need to instantiate this class manually, use
:username
and:password
options when callingCassandra.cluster
and one will be created automatically for you.
Inherits
Methods
Returns a new instance of Password
- Parameters:
-
Name Type Details username String
username to use for authentication to Cassandra password String
password to use for authentication to Cassandra
Returns a Password Authenticator
- Parameters:
-
Name Type Details authentication_class String
ignored - Returns:
-
Type Details Auth::Authenticator
- Specifications:
-
-
Password#create_authenticator
creates a PasswordAuthenticator authenticator = auth_provider.create_authenticator(standard_authentication_class) authenticator.initial_response.should == "\x00foo\x00bar"
-
Password#create_authenticator
returns nil when the authentication class is not org.apache.cassandra.auth.PasswordAuthenticator authenticator = auth_provider.create_authenticator('org.acme.Foo') authenticator.initial_response.should == "\x00foo\x00bar"
-