Class: Win32::Security::ACE

Inherits:
Object
  • Object
show all
Defined in:
lib/win32/security/ace.rb

Overview

The ACE class encapsulates an Access Control Entry, an element within an Access Control List.

Constant Summary collapse

VERSION =

The version of the Win32::Security::ACE class.

'0.1.0'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ ACE

Returns a new instance of ACE.

Yields:

  • (_self)

Yield Parameters:



34
35
36
# File 'lib/win32/security/ace.rb', line 34

def initialize
  yield self if block_given?
end

Instance Attribute Details

#access_maskObject

Standard access rights, e.g. GENERIC_READ, GENERIC_WRITE, etc



20
21
22
# File 'lib/win32/security/ace.rb', line 20

def access_mask
  @access_mask
end

#ace_maskObject

The ACE mask, e.g. INHERITED_ACE



17
18
19
# File 'lib/win32/security/ace.rb', line 17

def ace_mask
  @ace_mask
end

#ace_typeObject

The ACE type, e.g. ACCESS_ALLOWED, ACCESS_DENIED, etc.



14
15
16
# File 'lib/win32/security/ace.rb', line 14

def ace_type
  @ace_type
end

#flagsObject (readonly)

Bit flags that indicate whether the ObjectType and InheritedObjectType members are present. This value is set internally based on the values passed to the ACE#object_type or ACE#inherited_object_type methods, if any.



26
27
28
# File 'lib/win32/security/ace.rb', line 26

def flags
  @flags
end

#inherited_object_typeObject

Returns the value of attribute inherited_object_type.



32
33
34
# File 'lib/win32/security/ace.rb', line 32

def inherited_object_type
  @inherited_object_type
end

#object_typeObject

A Win32::Security::GUID object that identifies the type of child object that can inherit the ACE.



30
31
32
# File 'lib/win32/security/ace.rb', line 30

def object_type
  @object_type
end