Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020001F1 RID: 497
[Token(Token = "0x20001F1")]
public sealed class X509KeyUsageExtension : X509Extension
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.X509Certificates.X509KeyUsageExtension" /> class.</summary>
// Token: 0x06000CF2 RID: 3314 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF2")]
[Address(RVA = "0xC90910", Offset = "0xC8F910", VA = "0x180C90910")]
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: 0x06000CF3 RID: 3315 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF3")]
[Address(RVA = "0xC90780", Offset = "0xC8F780", VA = "0x180C90780")]
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: 0x06000CF4 RID: 3316 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF4")]
[Address(RVA = "0xC90840", Offset = "0xC8F840", VA = "0x180C90840")]
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: 0x1700026B RID: 619
// (get) Token: 0x06000CF5 RID: 3317 RVA: 0x00006BE8 File Offset: 0x00004DE8
[Token(Token = "0x1700026B")]
public X509KeyUsageFlags KeyUsages
{
[Token(Token = "0x6000CF5")]
[Address(RVA = "0xC909A0", Offset = "0xC8F9A0", VA = "0x180C909A0")]
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: 0x06000CF6 RID: 3318 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000CF6")]
[Address(RVA = "0xC8FE70", Offset = "0xC8EE70", VA = "0x180C8FE70", Slot = "4")]
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
}
// Token: 0x06000CF7 RID: 3319 RVA: 0x00006C00 File Offset: 0x00004E00
[Token(Token = "0x6000CF7")]
[Address(RVA = "0xC90340", Offset = "0xC8F340", VA = "0x180C90340")]
internal X509KeyUsageFlags GetValidFlags(X509KeyUsageFlags flags)
{
return X509KeyUsageFlags.None;
}
// Token: 0x06000CF8 RID: 3320 RVA: 0x00006C18 File Offset: 0x00004E18
[Token(Token = "0x6000CF8")]
[Address(RVA = "0xC90000", Offset = "0xC8F000", VA = "0x180C90000")]
internal AsnDecodeStatus Decode(byte[] extension)
{
return AsnDecodeStatus.Ok;
}
// Token: 0x06000CF9 RID: 3321 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CF9")]
[Address(RVA = "0xC90180", Offset = "0xC8F180", VA = "0x180C90180")]
internal byte[] Encode()
{
return null;
}
// Token: 0x06000CFA RID: 3322 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000CFA")]
[Address(RVA = "0xC90350", Offset = "0xC8F350", VA = "0x180C90350", Slot = "5")]
internal override string ToString(bool multiLine)
{
return null;
}
// Token: 0x040006F7 RID: 1783
[Token(Token = "0x40006F7")]
internal const string oid = "2.5.29.15";
// Token: 0x040006F8 RID: 1784
[Token(Token = "0x40006F8")]
internal const string friendlyName = "Key Usage";
// Token: 0x040006F9 RID: 1785
[Token(Token = "0x40006F9")]
internal const X509KeyUsageFlags all = X509KeyUsageFlags.EncipherOnly | X509KeyUsageFlags.CrlSign | X509KeyUsageFlags.KeyCertSign | X509KeyUsageFlags.KeyAgreement | X509KeyUsageFlags.DataEncipherment | X509KeyUsageFlags.KeyEncipherment | X509KeyUsageFlags.NonRepudiation | X509KeyUsageFlags.DigitalSignature | X509KeyUsageFlags.DecipherOnly;
// Token: 0x040006FA RID: 1786
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40006FA")]
private X509KeyUsageFlags _keyUsages;
// Token: 0x040006FB RID: 1787
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x40006FB")]
private AsnDecodeStatus _status;
}
}