141 lines
3.4 KiB
C#
141 lines
3.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
|
{
|
|
// Token: 0x02001A6E RID: 6766
|
|
[Token(Token = "0x2001A6E")]
|
|
public abstract class Pkcs12Entry
|
|
{
|
|
// Token: 0x0600A009 RID: 40969 RVA: 0x002117E0 File Offset: 0x0020F9E0
|
|
[Token(Token = "0x600A009")]
|
|
[Address(RVA = "0x643250", Offset = "0x642250", VA = "0x180643250")]
|
|
protected internal Pkcs12Entry(IDictionary attributes)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
base..ctor();
|
|
this.attributes = attributes;
|
|
if (typeof(IEnumerator).TypeHandle == 0 || typeof(IEnumerator).TypeHandle == 0)
|
|
{
|
|
goto IL_51;
|
|
}
|
|
if (typeof(string).TypeHandle == 0)
|
|
{
|
|
goto IL_34;
|
|
}
|
|
if (typeof(string).TypeHandle != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_34:
|
|
Type typeFromHandle = typeof(Asn1Encodable);
|
|
throw new NullReferenceException();
|
|
IL_51:
|
|
Type typeFromHandle2 = typeof(string);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A00A RID: 40970 RVA: 0x0021186C File Offset: 0x0020FA6C
|
|
[Token(Token = "0x600A00A")]
|
|
[Address(RVA = "0x6431A0", Offset = "0x6421A0", VA = "0x1806431A0")]
|
|
[Obsolete]
|
|
public Asn1Encodable GetBagAttribute(DerObjectIdentifier oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A00B RID: 40971 RVA: 0x00211890 File Offset: 0x0020FA90
|
|
[Token(Token = "0x600A00B")]
|
|
[Address(RVA = "0x6430F0", Offset = "0x6420F0", VA = "0x1806430F0")]
|
|
[Obsolete]
|
|
public Asn1Encodable GetBagAttribute(string oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A00C RID: 40972 RVA: 0x002118B4 File Offset: 0x0020FAB4
|
|
[Token(Token = "0x600A00C")]
|
|
[Address(RVA = "0x643090", Offset = "0x642090", VA = "0x180643090")]
|
|
[Obsolete]
|
|
public IEnumerator GetBagAttributeKeys()
|
|
{
|
|
IDictionary dictionary = this.attributes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001994 RID: 6548
|
|
[Token(Token = "0x17001994")]
|
|
public Asn1Encodable this[DerObjectIdentifier oid]
|
|
{
|
|
[Token(Token = "0x600A00D")]
|
|
[Address(RVA = "0x643640", Offset = "0x642640", VA = "0x180643640")]
|
|
get
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001995 RID: 6549
|
|
[Token(Token = "0x17001995")]
|
|
public Asn1Encodable this[string oid]
|
|
{
|
|
[Token(Token = "0x600A00E")]
|
|
[Address(RVA = "0x643590", Offset = "0x642590", VA = "0x180643590")]
|
|
get
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001996 RID: 6550
|
|
// (get) Token: 0x0600A00F RID: 40975 RVA: 0x00211918 File Offset: 0x0020FB18
|
|
[Token(Token = "0x17001996")]
|
|
public IEnumerable BagAttributeKeys
|
|
{
|
|
[Token(Token = "0x600A00F")]
|
|
[Address(RVA = "0x643510", Offset = "0x642510", VA = "0x180643510")]
|
|
get
|
|
{
|
|
IDictionary dictionary = this.attributes;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x04006AE0 RID: 27360
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006AE0")]
|
|
private readonly IDictionary attributes;
|
|
}
|
|
}
|