Class: Cassandra::Auth::Provider Abstract
- Inherits:
-
Object
- Object
- Cassandra::Auth::Provider
- Defined in:
- lib/cassandra/auth.rb
Overview
This class is abstract.
Auth providers given to Cassandra.cluster don't need to be subclasses of this class, but need to implement the same methods. This class exists only for documentation purposes.
Note:
Creating an authenticator must absolutely not block, or the whole connection process will block.
An auth provider is a factory for authenticator instances (or objects matching that interface). Its #create_authenticator will be called once for each connection that requires authentication.
If the authentication requires keeping state, keep that in the authenticator instances, not in the auth provider.