Class: Net::NTLM::Message::Type3

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/external/ntlm/ntlm.rb

Class Method Summary collapse

Class Method Details

.create(arg, opt = {}) ⇒ Object


774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
# File 'lib/watobo/external/ntlm/ntlm.rb', line 774

def create(arg, opt ={})
  t = new
  t.lm_response = arg[:lm_response]
  t.ntlm_response = arg[:ntlm_response]
  t.domain = arg[:domain]
  t.user = arg[:user]
  t.workstation = arg[:workstation]
  
  if arg[:session_key]
    t.enable(:session_key)
    t.session_key = arg[session_key]
  end
  if arg[:flag]
    t.enable(:session_key)
    t.enable(:flag)
    t.flag = arg[:flag]
  end
  t
end

.parse(str) ⇒ Object


768
769
770
771
772
# File 'lib/watobo/external/ntlm/ntlm.rb', line 768

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