class HrrRbSsh::Authentication::Method::KeyboardInteractive::Context

Attributes

authentication_methods[R]
info_response[R]
submethods[R]
username[R]
variables[R]
vars[R]

Public Class Methods

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

Public Instance Methods

info_request(name, instruction, language_tag, prompts) click to toggle source
# File lib/hrr_rb_ssh/authentication/method/keyboard_interactive/context.rb, line 33
def info_request name, instruction, language_tag, prompts
  log_info { "send userauth info request" }
  @transport.send InfoRequest.new(name, instruction, language_tag, prompts, logger: logger).to_payload
  log_info { "receive userauth info response" }
  @info_response = InfoResponse.new @transport.receive, logger: logger
end