mscorlib(4.0.0.0) API with additions
CryptoKeyAuditRule.cs
2 
4 {
6  public sealed class CryptoKeyAuditRule : AuditRule
7  {
10  public CryptoKeyRights CryptoKeyRights => RightsFromAccessMask(base.AccessMask);
11 
16  public CryptoKeyAuditRule(IdentityReference identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
17  : this(identity, AccessMaskFromRights(cryptoKeyRights), isInherited: false, InheritanceFlags.None, PropagationFlags.None, flags)
18  {
19  }
20 
25  public CryptoKeyAuditRule(string identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
26  : this(new NTAccount(identity), AccessMaskFromRights(cryptoKeyRights), isInherited: false, InheritanceFlags.None, PropagationFlags.None, flags)
27  {
28  }
29 
30  private CryptoKeyAuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
31  : base(identity, accessMask, isInherited, inheritanceFlags, propagationFlags, flags)
32  {
33  }
34 
35  private static int AccessMaskFromRights(CryptoKeyRights cryptoKeyRights)
36  {
37  return (int)cryptoKeyRights;
38  }
39 
40  internal static CryptoKeyRights RightsFromAccessMask(int accessMask)
41  {
42  return (CryptoKeyRights)accessMask;
43  }
44  }
45 }
PropagationFlags
Specifies how Access Control Entries (ACEs) are propagated to child objects. These flags are signific...
CryptoKeyRights
Specifies the cryptographic key operation for which an authorization rule controls access or auditing...
Represents an identity and is the base class for the T:System.Security.Principal.NTAccount and T:Syst...
CryptoKeyRights CryptoKeyRights
Gets the cryptographic key operation for which this audit rule generates audits.
Represents an audit rule for a cryptographic key. An audit rule represents a combination of a user's ...
Definition: __Canon.cs:3
CryptoKeyAuditRule(string identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
Initializes a new instance of the T:System.Security.AccessControl.CryptoKeyAuditRule class using the ...
Represents a user or group account.
Definition: NTAccount.cs:10
CryptoKeyAuditRule(IdentityReference identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
Initializes a new instance of the T:System.Security.AccessControl.CryptoKeyAuditRule class using the ...
Represents a combination of a user’s identity and an access mask.
Definition: AuditRule.cs:7
InheritanceFlags
Inheritance flags specify the semantics of inheritance for access control entries (ACEs).
AuditFlags
Specifies the conditions for auditing attempts to access a securable object.
Definition: AuditFlags.cs:5