Module: Cql::Auth

Defined in:
lib/cql/auth.rb,
lib/cql/auth/plain_text_auth.rb

Defined Under Namespace

Classes: AuthProvider, Authenticator, PlainTextAuthProvider, PlainTextAuthenticator

Instance Method Summary collapse

Instance Method Details

#create_authenticator(authentication_class, protocol_version) ⇒ Cql::Client::Authenticator?

Note:

This method must absolutely not block.

Create a new authenticator object. This method will be called once per connection that requires authentication. The auth provider can create different authenticators for different authentication classes, or return nil if it does not support the authentication class.

Parameters:

  • authentication_class (String)

    the authentication class used by the server.

Returns:

  • (Cql::Client::Authenticator, nil)

    an object with an interface matching Client::Authenticator or nil if the authentication class is not supported.



# File 'lib/cql/auth.rb', line 20