class HrrRbSsh::Authentication::Method::Password::Context

Attributes

authentication_methods[R]
password[R]
username[R]
variables[R]
vars[R]

Public Class Methods

new(username, password, variables, authentication_methods, logger: nil) click to toggle source
# File lib/hrr_rb_ssh/authentication/method/password/context.rb, line 20
def initialize username, password, variables, authentication_methods, logger: nil
  self.logger = logger
  @username = username
  @password = password
  @variables = variables
  @vars = variables
  @authentication_methods = authentication_methods
end

Public Instance Methods

verify(username, password) click to toggle source
# File lib/hrr_rb_ssh/authentication/method/password/context.rb, line 29
def verify username, password
  log_info { "verify username and password" }
  log_debug { "username is #{username}, @username is #{@username}, and password is #{password}, @password is #{@password}" }
  username == @username and password == @password
end