Files
Dec2017-Script-Dump/mscorlib/System/Security/AccessControl/CryptoKeyAccessRule.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 access rule for a cryptographic key. An access rule represents a combination of a user's identity, an access mask, and an access control type (allow or deny). An access rule object also contains information about the how the rule is inherited by child objects and how that inheritance is propagated.</summary>
// Token: 0x020004B5 RID: 1205
public sealed class CryptoKeyAccessRule : AccessRule
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.CryptoKeyAccessRule" /> class using the specified values. </summary>
/// <param name="identity">The identity to which the access 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 to which this access rule controls access.</param>
/// <param name="type">The valid access control type.</param>
// Token: 0x06002CF6 RID: 11510 RVA: 0x00093498 File Offset: 0x00091698
public CryptoKeyAccessRule(IdentityReference identity, CryptoKeyRights cryptoKeyRights, AccessControlType type)
: base(identity, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow)
{
this.rights = cryptoKeyRights;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.CryptoKeyAccessRule" /> class using the specified values.</summary>
/// <param name="identity">The identity to which the access rule applies.</param>
/// <param name="cryptoKeyRights">The cryptographic key operation to which this access rule controls access.</param>
/// <param name="type">The valid access control type.</param>
// Token: 0x06002CF7 RID: 11511 RVA: 0x000934B0 File Offset: 0x000916B0
public CryptoKeyAccessRule(string identity, CryptoKeyRights cryptoKeyRights, AccessControlType type)
: this(new SecurityIdentifier(identity), cryptoKeyRights, type)
{
}
/// <summary>Gets the cryptographic key operation to which this access rule controls access.</summary>
/// <returns>The cryptographic key operation to which this access rule controls access.</returns>
// Token: 0x170008D3 RID: 2259
// (get) Token: 0x06002CF8 RID: 11512 RVA: 0x000934C0 File Offset: 0x000916C0
public CryptoKeyRights CryptoKeyRights
{
get
{
return this.rights;
}
}
// Token: 0x040011BF RID: 4543
private CryptoKeyRights rights;
}
}