Class: PostgresPR::AuthentificationMD5Password

Inherits:
Authentification show all
Defined in:
lib/postgres-pr/message.rb

Constant Summary

Constants inherited from Authentification

PostgresPR::Authentification::AuthTypeMap

Constants inherited from Message

Message::MsgTypeMap

Instance Attribute Summary collapse

Attributes inherited from Authentification

#auth_type

Instance Method Summary collapse

Methods inherited from Authentification

create, register_auth_type

Methods inherited from Message

create, #dump, dump, read, register_message_type

Instance Attribute Details

#saltObject

Returns the value of attribute salt.



117
118
119
# File 'lib/postgres-pr/message.rb', line 117

def salt
  @salt
end

Instance Method Details

#parse(buffer) ⇒ Object



119
120
121
122
123
# File 'lib/postgres-pr/message.rb', line 119

def parse(buffer)
  super do
    @salt = buffer.read(4)
  end
end