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

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

Class Method Summary collapse

Class Method Details

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



751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
# File 'lib/net/ntlm.rb', line 751

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



745
746
747
748
749
# File 'lib/net/ntlm.rb', line 745

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