Class: PacketGen::Plugin::NTLM::ArrayOfAvPair

Inherits:
Types::Array
  • Object
show all
Defined in:
lib/packetgen/plugin/ntlm/av_pair.rb

Overview

Specialized array containing AvPairs.

Instance Method Summary collapse

Instance Method Details

#to_sString

Returns:

  • (String)


82
83
84
85
# File 'lib/packetgen/plugin/ntlm/av_pair.rb', line 82

def to_s
  self.unicode = unicode
  super
end

#unicodeBoolean Also known as: unicode?

Get unicode property

Returns:

  • (Boolean)


67
68
69
# File 'lib/packetgen/plugin/ntlm/av_pair.rb', line 67

def unicode
  @unicode
end

#unicode=(unicode) ⇒ Boolean

Set unicode property

Parameters:

  • unicode (Boolean)

Returns:

  • (Boolean)


75
76
77
78
79
# File 'lib/packetgen/plugin/ntlm/av_pair.rb', line 75

def unicode=(unicode)
  @unicode = unicode
  each { |avpair| avpair.value.unicode = unicode if avpair.value.respond_to? :unicode= }
  unicode
end