Class: Net::NTLM::Message::Type1

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ntlm.rb,
lib/net/ntlm_http.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(str) ⇒ Object



615
616
617
618
619
# File 'lib/net/ntlm.rb', line 615

def parse(str)
  t = new
  t.parse(str)
  t
end

Instance Method Details

#parse(str) ⇒ Object



622
623
624
625
626
627
628
629
630
631
# File 'lib/net/ntlm.rb', line 622

def parse(str)
  super(str)
  enable(:domain) if has_flag?(:DOMAIN_SUPPLIED)
  enable(:workstation) if has_flag?(:WORKSTATION_SUPPLIED)
  super(str)
  if ( (len = data_edge - head_size) > 0)
    self.padding = "\0" * len
    super(str)
  end
end