Class: Win32::Security::ACE
- Inherits:
-
Object
- Object
- Win32::Security::ACE
- 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
-
#access_mask ⇒ Object
Standard access rights, e.g.
-
#ace_mask ⇒ Object
The ACE mask, e.g.
-
#ace_type ⇒ Object
The ACE type, e.g.
-
#flags ⇒ Object
readonly
Bit flags that indicate whether the ObjectType and InheritedObjectType members are present.
-
#inherited_object_type ⇒ Object
Returns the value of attribute inherited_object_type.
-
#object_type ⇒ Object
A Win32::Security::GUID object that identifies the type of child object that can inherit the ACE.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ ACE
constructor
A new instance of ACE.
Constructor Details
#initialize {|_self| ... } ⇒ ACE
Returns a new instance of ACE.
34 35 36 |
# File 'lib/win32/security/ace.rb', line 34 def initialize yield self if block_given? end |
Instance Attribute Details
#access_mask ⇒ Object
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_mask ⇒ Object
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_type ⇒ Object
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 |
#flags ⇒ Object (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_type ⇒ Object
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_type ⇒ Object
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 |