Sha256: bee516a316f9d3d8a9739b4d6d69f8c1f6c4e42d80ec12b8a682fd8714949544

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 KB

Contents

# The Win32 module serves as a namespace only.
module Win32
   
  # The Security class serves as a toplevel class namespace.
  class Security
      
    # The ACE class encapsulates an Access Control Entry, an element within
    # an Access Control List.
    class ACE
      # The version of the Win32::Security::ACE class.
      VERSION = '0.1.0'

      # The ACE type, e.g. ACCESS_ALLOWED, ACCESS_DENIED, etc.
      attr_accessor :ace_type

      # The ACE mask, e.g. INHERITED_ACE
      attr_accessor :ace_mask

      # Standard access rights, e.g. GENERIC_READ, GENERIC_WRITE, etc 
      attr_accessor :access_mask

      # 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.
      attr_reader :flags

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

      attr_accessor :inherited_object_type

      def initialize
        yield self if block_given?
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
win32-security-0.2.5 lib/win32/security/ace.rb
win32-security-0.2.4 lib/win32/security/ace.rb
win32-security-0.2.3 lib/win32/security/ace.rb
win32-security-0.2.2 lib/win32/security/ace.rb
win32-security-0.2.1 lib/win32/security/ace.rb
win32-security-0.2.0 lib/win32/security/ace.rb
win32-security-0.1.4 lib/win32/security/ace.rb