Class: HrrRbSsh::Message::SSH_MSG_USERAUTH_REQUEST

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

Constant Summary collapse

ID =
self.name.split('::').last
VALUE =
50
DEFINITION =
[
  #[DataType, Field Name]
  [DataType::Byte,      :'message number'],
  [DataType::String,    :'user name'],
  [DataType::String,    :'service name'],
  [DataType::String,    :'method name'],
]
PUBLICKEY_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'method name' : "publickey"],
  [DataType::Boolean,   :'with signature'],
  [DataType::String,    :'public key algorithm name'],
  [DataType::String,    :'public key blob'],
]
PUBLICKEY_SIGNATURE_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'with signature' : "TRUE"],
  [DataType::String,    :'signature'],
]
PASSWORD_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'method name' : "password"],
  [DataType::Boolean,   :'FALSE'],
  [DataType::String,    :'plaintext password'],
]
KEYBOARD_INTERACTIVE_DEFINITION =
[
  #[DataType, Field Name]
  #[DataType::String,   :'method name' : "keyboard-interactive"],
  [DataType::String,    :'language tag'],
  [DataType::String,    :'submethods'],
]
CONDITIONAL_DEFINITION =
{
  # Field Name => {Field Value => Conditional Definition}
  :'method name' => {
    "publickey"             => PUBLICKEY_DEFINITION,
    "password"              => PASSWORD_DEFINITION,
    "keyboard-interactive"  => KEYBOARD_INTERACTIVE_DEFINITION,
  },
  :'with signature' => {
    true => PUBLICKEY_SIGNATURE_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