Files
Dec2017-Script-Dump/mscorlib/System/Security/AccessControl/CryptoKeyAuditRule.cs
T
2026-06-04 11:42:34 +02:00

47 lines
2.5 KiB
C#

using System;
using System.Security.Principal;
namespace System.Security.AccessControl
{
/// <summary>Represents an audit rule for a cryptographic key. An audit rule represents a combination of a user's identity and an access mask. An audit rule also contains information about the how the rule is inherited by child objects, how that inheritance is propagated, and for what conditions it is audited.</summary>
// Token: 0x020004B6 RID: 1206
public sealed class CryptoKeyAuditRule : AuditRule
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.CryptoKeyAuditRule" /> class using the specified values. </summary>
/// <param name="identity">The identity to which the audit rule applies. This parameter must be an object that can be cast as a <see cref="T:System.Security.Principal.SecurityIdentifier" />.</param>
/// <param name="cryptoKeyRights">The cryptographic key operation for which this audit rule generates audits.</param>
/// <param name="flags">The conditions that generate audits.</param>
// Token: 0x06002CF9 RID: 11513 RVA: 0x000934C8 File Offset: 0x000916C8
public CryptoKeyAuditRule(IdentityReference identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
: base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, flags)
{
this.rights = cryptoKeyRights;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.CryptoKeyAuditRule" /> class using the specified values. </summary>
/// <param name="identity">The identity to which the audit rule applies.</param>
/// <param name="cryptoKeyRights">The cryptographic key operation for which this audit rule generates audits.</param>
/// <param name="flags">The conditions that generate audits.</param>
// Token: 0x06002CFA RID: 11514 RVA: 0x000934E0 File Offset: 0x000916E0
public CryptoKeyAuditRule(string identity, CryptoKeyRights cryptoKeyRights, AuditFlags flags)
: this(new SecurityIdentifier(identity), cryptoKeyRights, flags)
{
}
/// <summary>Gets the cryptographic key operation for which this audit rule generates audits.</summary>
/// <returns>The cryptographic key operation for which this audit rule generates audits.</returns>
// Token: 0x170008D4 RID: 2260
// (get) Token: 0x06002CFB RID: 11515 RVA: 0x000934F0 File Offset: 0x000916F0
public CryptoKeyRights CryptoKeyRights
{
get
{
return this.rights;
}
}
// Token: 0x040011C0 RID: 4544
private CryptoKeyRights rights;
}
}