Files
2026-04-10 22:50:51 +02:00

121 lines
5.5 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Security.Cryptography.X509Certificates
{
/// <summary>Defines the usage of a key contained within an X.509 certificate. This class cannot be inherited.</summary>
// Token: 0x020001F5 RID: 501
[Token(Token = "0x20001F5")]
public sealed class X509KeyUsageExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class.</summary>
// Token: 0x06000D08 RID: 3336 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D08")]
[Address(RVA = "0x51D6A0", Offset = "0x51C4A0", VA = "0x18051D6A0")]
public X509KeyUsageExtension()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object and a value that identifies whether the extension is critical.</summary>
/// <param name="encodedKeyUsage">The encoded data to use to create the extension.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000D09 RID: 3337 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D09")]
[Address(RVA = "0x51D510", Offset = "0x51C310", VA = "0x18051D510")]
public X509KeyUsageExtension(AsnEncodedData encodedKeyUsage, bool critical)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using the specified <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> value and a value that identifies whether the extension is critical.</summary>
/// <param name="keyUsages">One of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageFlags" /> values that describes how to use the key.</param>
/// <param name="critical">
/// <see langword="true" /> if the extension is critical; otherwise, <see langword="false" />.</param>
// Token: 0x06000D0A RID: 3338 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D0A")]
[Address(RVA = "0x51D5D0", Offset = "0x51C3D0", VA = "0x18051D5D0")]
public X509KeyUsageExtension(X509KeyUsageFlags keyUsages, bool critical)
{
}
/// <summary>Gets the key usage flag associated with the certificate.</summary>
/// <returns>One of the <see cref="P:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension.KeyUsages" /> values.</returns>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The extension cannot be decoded.</exception>
// Token: 0x1700026F RID: 623
// (get) Token: 0x06000D0B RID: 3339 RVA: 0x00006C00 File Offset: 0x00004E00
[Token(Token = "0x1700026F")]
public X509KeyUsageFlags KeyUsages
{
[Token(Token = "0x6000D0B")]
[Address(RVA = "0x51D730", Offset = "0x51C530", VA = "0x18051D730")]
get
{
return X509KeyUsageFlags.None;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class using an <see cref="T:System.Security.Cryptography.AsnEncodedData" /> object.</summary>
/// <param name="asnEncodedData">The encoded data to use to create the extension.</param>
// Token: 0x06000D0C RID: 3340 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000D0C")]
[Address(RVA = "0x51CC00", Offset = "0x51BA00", VA = "0x18051CC00", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000D0D RID: 3341 RVA: 0x00006C18 File Offset: 0x00004E18
[Token(Token = "0x6000D0D")]
[Address(RVA = "0x51D0D0", Offset = "0x51BED0", VA = "0x18051D0D0")]
internal X509KeyUsageFlags GetValidFlags(X509KeyUsageFlags flags)
{
return X509KeyUsageFlags.None;
}
// Token: 0x06000D0E RID: 3342 RVA: 0x00006C30 File Offset: 0x00004E30
[Token(Token = "0x6000D0E")]
[Address(RVA = "0x51CD90", Offset = "0x51BB90", VA = "0x18051CD90")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000D0F RID: 3343 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D0F")]
[Address(RVA = "0x51CF10", Offset = "0x51BD10", VA = "0x18051CF10")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000D10 RID: 3344 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000D10")]
[Address(RVA = "0x51D0E0", Offset = "0x51BEE0", VA = "0x18051D0E0", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x04000704 RID: 1796
[Token(Token = "0x4000704")]
internal const string oid = "2.5.29.15";
// Token: 0x04000705 RID: 1797
[Token(Token = "0x4000705")]
internal const string friendlyName = "Key Usage";
// Token: 0x04000706 RID: 1798
[Token(Token = "0x4000706")]
internal const X509KeyUsageFlags all = X509KeyUsageFlags.EncipherOnly | X509KeyUsageFlags.CrlSign | X509KeyUsageFlags.KeyCertSign | X509KeyUsageFlags.KeyAgreement | X509KeyUsageFlags.DataEncipherment | X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.NonRepudiation | X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.DecipherOnly;
// Token: 0x04000707 RID: 1799
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000707")]
private X509KeyUsageFlags _keyUsages;
// Token: 0x04000708 RID: 1800
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000708")]
private AsnDecodeStatus _status;
}
}