Class: Dse::Auth::Providers::Password

Inherits:
Cassandra::Auth::Provider
  • Object
show all
Defined in:
lib/dse/auth/providers/password.rb

Overview

Note:

No need to instantiate this class manually, use :username and :password options when calling Dse.cluster and one will be created automatically for you.

Auth provider to authenticate with username/password for DSE's built-in authentication as well as LDAP.

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ Password

Returns a new instance of Password.

Parameters:

  • username (String)

    username to use for authentication to Cassandra

  • password (String)

    password to use for authentication to Cassandra



44
45
46
47
# File 'lib/dse/auth/providers/password.rb', line 44

def initialize(username, password)
  @username = username
  @password = password
end