Export (0) Print
Expand All

CryptoKeySecurity Class

Provides the ability to control access to a cryptographic key object without direct manipulation of an Access Control List (ACL).

Namespace:  System.Security.AccessControl
Assembly:  mscorlib (in mscorlib.dll)

public sealed class CryptoKeySecurity : NativeObjectSecurity

The CryptoKeySecurity type exposes the following members.

  NameDescription
Public methodCryptoKeySecurity()Initializes a new instance of the CryptoKeySecurity class.
Public methodCryptoKeySecurity(CommonSecurityDescriptor)Initializes a new instance of the CryptoKeySecurity class by using the specified security descriptor.
Top

  NameDescription
Public propertyAccessRightTypeGets the Type of the securable object associated with this CryptoKeySecurity object. (Overrides ObjectSecurity.AccessRightType.)
Public propertyAccessRuleTypeGets the Type of the object associated with the access rules of this CryptoKeySecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object. (Overrides ObjectSecurity.AccessRuleType.)
Public propertyAreAccessRulesCanonicalGets a Boolean value that specifies whether the access rules associated with this ObjectSecurity object are in canonical order. (Inherited from ObjectSecurity.)
Public propertyAreAccessRulesProtectedGets a Boolean value that specifies whether the Discretionary Access Control List (DACL) associated with this ObjectSecurity object is protected. (Inherited from ObjectSecurity.)
Public propertyAreAuditRulesCanonicalGets a Boolean value that specifies whether the audit rules associated with this ObjectSecurity object are in canonical order. (Inherited from ObjectSecurity.)
Public propertyAreAuditRulesProtectedGets a Boolean value that specifies whether the System Access Control List (SACL) associated with this ObjectSecurity object is protected. (Inherited from ObjectSecurity.)
Public propertyAuditRuleTypeGets the Type object associated with the audit rules of this CryptoKeySecurity object. The Type object must be an object that can be cast as a SecurityIdentifier object. (Overrides ObjectSecurity.AuditRuleType.)
Top

  NameDescription
Public methodAccessRuleFactoryInitializes a new instance of the AccessRule class with the specified values. (Overrides ObjectSecurity.AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType).)
Public methodAddAccessRuleAdds the specified access rule to the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object.
Public methodAddAuditRuleAdds the specified audit rule to the System Access Control List (SACL) associated with this CryptoKeySecurity object.
Public methodAuditRuleFactoryInitializes a new instance of the AuditRule class with the specified values. (Overrides ObjectSecurity.AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetAccessRulesGets a collection of the access rules associated with the specified security identifier. (Inherited from CommonObjectSecurity.)
Public methodGetAuditRulesGets a collection of the audit rules associated with the specified security identifier. (Inherited from CommonObjectSecurity.)
Public methodGetGroupGets the primary group associated with the specified owner. (Inherited from ObjectSecurity.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetOwnerGets the owner associated with the specified primary group. (Inherited from ObjectSecurity.)
Public methodGetSecurityDescriptorBinaryFormReturns an array of byte values that represents the security descriptor information for this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodGetSecurityDescriptorSddlFormReturns the Security Descriptor Definition Language (SDDL) representation of the specified sections of the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodModifyAccessRuleApplies the specified modification to the Discretionary Access Control List (DACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodModifyAuditRuleApplies the specified modification to the System Access Control List (SACL) associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodPurgeAccessRulesRemoves all access rules associated with the specified IdentityReference. (Inherited from ObjectSecurity.)
Public methodPurgeAuditRulesRemoves all audit rules associated with the specified IdentityReference. (Inherited from ObjectSecurity.)
Public methodRemoveAccessRuleRemoves access rules that contain the same security identifier and access mask as the specified access rule from the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object.
Public methodRemoveAccessRuleAllRemoves all access rules that have the same security identifier as the specified access rule from the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object.
Public methodRemoveAccessRuleSpecificRemoves all access rules that exactly match the specified access rule from the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object.
Public methodRemoveAuditRuleRemoves audit rules that contain the same security identifier and access mask as the specified audit rule from the System Access Control List (SACL) associated with this CryptoKeySecurity object.
Public methodRemoveAuditRuleAllRemoves all audit rules that have the same security identifier as the specified audit rule from the System Access Control List (SACL) associated with this CryptoKeySecurity object.
Public methodRemoveAuditRuleSpecificRemoves all audit rules that exactly match the specified audit rule from the System Access Control List (SACL) associated with this CryptoKeySecurity object.
Public methodResetAccessRuleRemoves all access rules in the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object and then adds the specified access rule.
Public methodSetAccessRuleRemoves all access rules that contain the same security identifier and qualifier as the specified access rule in the Discretionary Access Control List (DACL) associated with this CryptoKeySecurity object and then adds the specified access rule.
Public methodSetAccessRuleProtectionSets or removes protection of the access rules associated with this ObjectSecurity object. Protected access rules cannot be modified by parent objects through inheritance. (Inherited from ObjectSecurity.)
Public methodSetAuditRuleRemoves all audit rules that contain the same security identifier and qualifier as the specified audit rule in the System Access Control List (SACL) associated with this CryptoKeySecurity object and then adds the specified audit rule.
Public methodSetAuditRuleProtectionSets or removes protection of the audit rules associated with this ObjectSecurity object. Protected audit rules cannot be modified by parent objects through inheritance. (Inherited from ObjectSecurity.)
Public methodSetGroupSets the primary group for the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodSetOwnerSets the owner for the security descriptor associated with this ObjectSecurity object. (Inherited from ObjectSecurity.)
Public methodSetSecurityDescriptorBinaryForm(Byte[])Sets the security descriptor for this ObjectSecurity object from the specified array of byte values. (Inherited from ObjectSecurity.)
Public methodSetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified array of byte values. (Inherited from ObjectSecurity.)
Public methodSetSecurityDescriptorSddlForm(String)Sets the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. (Inherited from ObjectSecurity.)
Public methodSetSecurityDescriptorSddlForm(String, AccessControlSections)Sets the specified sections of the security descriptor for this ObjectSecurity object from the specified Security Descriptor Definition Language (SDDL) string. (Inherited from ObjectSecurity.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft