ObjectSecurity ObjectSecurity ObjectSecurity Class

Definition

Provides the ability to control access to objects without direct manipulation of Access Control Lists (ACLs). This class is the abstract base class for the CommonObjectSecurity and DirectoryObjectSecurity classes.

public ref class ObjectSecurity abstract
public abstract class ObjectSecurity
Public MustInherit Class ObjectSecurity
Inheritance
ObjectSecurityObjectSecurityObjectSecurity
Derived

Constructors

ObjectSecurity() ObjectSecurity() ObjectSecurity()

Initializes a new instance of the ObjectSecurity class.

ObjectSecurity(Boolean, Boolean) ObjectSecurity(Boolean, Boolean) ObjectSecurity(Boolean, Boolean)

Initializes a new instance of the ObjectSecurity class.

ObjectSecurity(CommonSecurityDescriptor) ObjectSecurity(CommonSecurityDescriptor) ObjectSecurity(CommonSecurityDescriptor)

Initializes a new instance of the ObjectSecurity class.

Properties

AccessRightType AccessRightType AccessRightType

Gets the Type of the securable object associated with this ObjectSecurity object.

AccessRulesModified AccessRulesModified AccessRulesModified

Gets or sets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object have been modified.

AccessRuleType AccessRuleType AccessRuleType

Gets the Type of the object associated with the access rules of this ObjectSecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object.

AreAccessRulesCanonical AreAccessRulesCanonical AreAccessRulesCanonical

Gets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order.

AreAccessRulesProtected AreAccessRulesProtected AreAccessRulesProtected

Gets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected.

AreAuditRulesCanonical AreAuditRulesCanonical AreAuditRulesCanonical

Gets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order.

AreAuditRulesProtected AreAuditRulesProtected AreAuditRulesProtected

Gets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected.

AuditRulesModified AuditRulesModified AuditRulesModified

Gets or sets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object have been modified.

AuditRuleType AuditRuleType AuditRuleType

Gets the Type object associated with the audit rules of this ObjectSecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object.

GroupModified GroupModified GroupModified

Gets or sets a Boolean value that specifies whether the group associated with the securable object has been modified.

IsContainer IsContainer IsContainer

Gets a Boolean value that specifies whether this ObjectSecurity object is a container object.

IsDS IsDS IsDS

Gets a Boolean value that specifies whether this ObjectSecurity object is a directory object.

OwnerModified OwnerModified OwnerModified

Gets or sets a Boolean value that specifies whether the owner of the securable object has been modified.

Methods

AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType) AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

Initializes a new instance of the AccessRule class with the specified values.

AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags) AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags) AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

Initializes a new instance of the AuditRule class with the specified values.

Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetGroup(Type) GetGroup(Type) GetGroup(Type)

Gets the primary group associated with the specified owner.

GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetOwner(Type) GetOwner(Type) GetOwner(Type)

Gets the owner associated with the specified primary group.

GetSecurityDescriptorBinaryForm() GetSecurityDescriptorBinaryForm() GetSecurityDescriptorBinaryForm()

Returns an array of byte values that represents the security descriptor information for this ObjectSecurity object.

GetSecurityDescriptorSddlForm(AccessControlSections) GetSecurityDescriptorSddlForm(AccessControlSections) GetSecurityDescriptorSddlForm(AccessControlSections)

Returns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object.

GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsSddlConversionSupported() IsSddlConversionSupported() IsSddlConversionSupported()

Returns a Boolean value that specifies whether the security descriptor associated with this ObjectSecurity object can be converted to the Security Descriptor Definition Language (SDDL) format.

MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ModifyAccess(AccessControlModification, AccessRule, Boolean) ModifyAccess(AccessControlModification, AccessRule, Boolean) ModifyAccess(AccessControlModification, AccessRule, Boolean)

Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.

ModifyAccessRule(AccessControlModification, AccessRule, Boolean) ModifyAccessRule(AccessControlModification, AccessRule, Boolean) ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

Applies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object.

ModifyAudit(AccessControlModification, AuditRule, Boolean) ModifyAudit(AccessControlModification, AuditRule, Boolean) ModifyAudit(AccessControlModification, AuditRule, Boolean)

Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.

ModifyAuditRule(AccessControlModification, AuditRule, Boolean) ModifyAuditRule(AccessControlModification, AuditRule, Boolean) ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

Applies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object.

Persist(Boolean, String, AccessControlSections) Persist(Boolean, String, AccessControlSections) Persist(Boolean, String, AccessControlSections)

Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

Persist(SafeHandle, AccessControlSections) Persist(SafeHandle, AccessControlSections) Persist(SafeHandle, AccessControlSections)

Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

Persist(String, AccessControlSections) Persist(String, AccessControlSections) Persist(String, AccessControlSections)

Saves the specified sections of the security descriptor associated with this ObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

PurgeAccessRules(IdentityReference) PurgeAccessRules(IdentityReference) PurgeAccessRules(IdentityReference)

Removes all access rules associated with the specified IdentityReference.

PurgeAuditRules(IdentityReference) PurgeAuditRules(IdentityReference) PurgeAuditRules(IdentityReference)

Removes all audit rules associated with the specified IdentityReference.

ReadLock() ReadLock() ReadLock()

Locks this ObjectSecurity object for read access.

ReadUnlock() ReadUnlock() ReadUnlock()

Unlocks this ObjectSecurity object for read access.

SetAccessRuleProtection(Boolean, Boolean) SetAccessRuleProtection(Boolean, Boolean) SetAccessRuleProtection(Boolean, Boolean)

Sets or removes protection of the access rules associated with this ObjectSecurity object. Protected access rules cannot be modified by parent objects through inheritance.

SetAuditRuleProtection(Boolean, Boolean) SetAuditRuleProtection(Boolean, Boolean) SetAuditRuleProtection(Boolean, Boolean)

Sets or removes protection of the audit rules associated with this ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance.

SetGroup(IdentityReference) SetGroup(IdentityReference) SetGroup(IdentityReference)

Sets the primary group for the security descriptor associated with this ObjectSecurity object.

SetOwner(IdentityReference) SetOwner(IdentityReference) SetOwner(IdentityReference)

Sets the owner for the security descriptor associated with this ObjectSecurity object.

SetSecurityDescriptorBinaryForm(Byte[]) SetSecurityDescriptorBinaryForm(Byte[]) SetSecurityDescriptorBinaryForm(Byte[])

Sets the security descriptor for this ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections) SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections) SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values.

SetSecurityDescriptorSddlForm(String) SetSecurityDescriptorSddlForm(String) SetSecurityDescriptorSddlForm(String)

Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

SetSecurityDescriptorSddlForm(String, AccessControlSections) SetSecurityDescriptorSddlForm(String, AccessControlSections) SetSecurityDescriptorSddlForm(String, AccessControlSections)

Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string.

ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WriteLock() WriteLock() WriteLock()

Locks this ObjectSecurity object for write access.

WriteUnlock() WriteUnlock() WriteUnlock()

Unlocks this ObjectSecurity object for write access.

Applies to