class Cassandra::Auth::Providers::Password

Auth provider used for Cassandra's built in authentication.

@note No need to instantiate this class manually, use `:username` and

`:password` options when calling {Cassandra.cluster} and one will be
created automatically for you.

Public Class Methods

new(username, password) click to toggle source

@param username [String] username to use for authentication to Cassandra @param password [String] password to use for authentication to Cassandra

   # File lib/cassandra/auth/providers/password.rb
51 def initialize(username, password)
52   @username = username
53   @password = password
54 end

Public Instance Methods

create_authenticator(authentication_class) click to toggle source

Returns a Password Authenticator @param authentication_class [String] ignored @return [Cassandra::Auth::Authenticator]

   # File lib/cassandra/auth/providers/password.rb
59 def create_authenticator(authentication_class)
60   Authenticator.new(@username, @password)
61 end