Class: HrrRbSsh::Message::SSH_MSG_USERAUTH_INFO_REQUEST

Inherits:
Object
  • Object
show all
Includes:
Codable
Defined in:
lib/hrr_rb_ssh/message/060_ssh_msg_userauth_info_request.rb

Constant Summary collapse

ID =
self.name.split('::').last
VALUE =
60
DEFINITION =
[
  #[DataType, Field Name]
  [DataType::Byte,      :'message number'],
  [DataType::String,    :'name'],
  [DataType::String,    :'instruction'],
  [DataType::String,    :'language tag'],
  [DataType::Uint32,    :'num-prompts'],
]
PER_NUM_PROMPTS_DEFINITION =
Hash.new{ |hash, key|
  Array.new(key){ |i|
    [
      #[DataType, Field Name]
      #[DataType::String,   :'num-prompts' : "> 0"],
      [DataType::String,    :"prompt[#{i+1}]"],
      [DataType::Boolean,   :"echo[#{i+1}]"],
    ]
  }.inject(:+)
}
CONDITIONAL_DEFINITION =
{
  # Field Name => {Field Value => Conditional Definition}
  :'num-prompts' => PER_NUM_PROMPTS_DEFINITION,
}

Instance Attribute Summary

Attributes included from Loggable

#log_key, #logger

Method Summary

Methods included from Codable

#common_definition, #conditional_definition, #decode, #decode_recursively, #encode, #initialize

Methods included from Loggable

#log_debug, #log_error, #log_fatal, #log_info, #log_warn