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

Inherits:
Net::NTLM::Message show all
Defined in:
lib/net/ntlm/message/type1.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Net::NTLM::Message

#data_edge, #data_size, decode64, #decode64, #deflag, #dump_flags, #encode64, #has_flag?, #head_size, #security_buffers, #serialize, #set_flag, #size

Methods inherited from FieldSet

#[], #[]=, #disable, #enable, #initialize, int16LE, int32LE, int64LE, names, opts, prototypes, security_buffer, #serialize, #size, string, types

Constructor Details

This class inherits a constructor from Net::NTLM::FieldSet

Class Method Details

.parse(str) ⇒ Type1

Parses a Type 1 Message

Parameters:

  • str (String)

    A string containing Type 1 data

Returns:

  • (Type1)

    The parsed Type 1 message



19
20
21
22
23
# File 'lib/net/ntlm/message/type1.rb', line 19

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

Instance Method Details

#domainSecurityBuffer

Returns:



11
# File 'lib/net/ntlm/message/type1.rb', line 11

security_buffer :domain,       {:value => ""}

#domain=SecurityBuffer

Returns:



11
# File 'lib/net/ntlm/message/type1.rb', line 11

security_buffer :domain,       {:value => ""}

#flagInt32LE

Returns:



10
# File 'lib/net/ntlm/message/type1.rb', line 10

int32LE         :flag,         {:value => DEFAULT_FLAGS[:TYPE1] }

#flag=Int32LE

Returns:



10
# File 'lib/net/ntlm/message/type1.rb', line 10

int32LE         :flag,         {:value => DEFAULT_FLAGS[:TYPE1] }

#paddingString

Returns:



13
# File 'lib/net/ntlm/message/type1.rb', line 13

string          :padding,      {:size => 0, :value => "", :active => false }

#padding=String

Returns:



13
# File 'lib/net/ntlm/message/type1.rb', line 13

string          :padding,      {:size => 0, :value => "", :active => false }

#signString

Returns:



8
# File 'lib/net/ntlm/message/type1.rb', line 8

string          :sign,         {:size => 8, :value => SSP_SIGN}

#sign=String

Returns:



8
# File 'lib/net/ntlm/message/type1.rb', line 8

string          :sign,         {:size => 8, :value => SSP_SIGN}

#typeInt32LE

Returns:



9
# File 'lib/net/ntlm/message/type1.rb', line 9

int32LE         :type,         {:value => 1}

#type=Int32LE

Returns:



9
# File 'lib/net/ntlm/message/type1.rb', line 9

int32LE         :type,         {:value => 1}

#workstationSecurityBuffer

Returns:



12
# File 'lib/net/ntlm/message/type1.rb', line 12

security_buffer :workstation,  {:value => Socket.gethostname }

#workstation=SecurityBuffer

Returns:



12
# File 'lib/net/ntlm/message/type1.rb', line 12

security_buffer :workstation,  {:value => Socket.gethostname }