163 lines
4.5 KiB
C#
163 lines
4.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001848 RID: 6216
|
|
[Token(Token = "0x2001848")]
|
|
[StructLayout(3)]
|
|
public class UserNotice : Asn1Encodable
|
|
{
|
|
// Token: 0x0600A789 RID: 42889 RVA: 0x0026F9C4 File Offset: 0x0026DBC4
|
|
[Token(Token = "0x600A789")]
|
|
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
|
public UserNotice(NoticeReference noticeRef, DisplayText explicitText)
|
|
{
|
|
this.noticeRef = noticeRef;
|
|
this.explicitText = explicitText;
|
|
}
|
|
|
|
// Token: 0x0600A78A RID: 42890 RVA: 0x0026F9E8 File Offset: 0x0026DBE8
|
|
[Token(Token = "0x600A78A")]
|
|
[Address(RVA = "0x2777D00", Offset = "0x2776700", VA = "0x182777D00")]
|
|
public UserNotice(NoticeReference noticeRef, string str)
|
|
{
|
|
DisplayText displayText = new DisplayText(str);
|
|
base..ctor();
|
|
this.noticeRef = noticeRef;
|
|
this.explicitText = displayText;
|
|
}
|
|
|
|
// Token: 0x0600A78B RID: 42891 RVA: 0x0026FA10 File Offset: 0x0026DC10
|
|
[Token(Token = "0x600A78B")]
|
|
[Address(RVA = "0x2777D80", Offset = "0x2776780", VA = "0x182777D80")]
|
|
[Obsolete]
|
|
public UserNotice(Asn1Sequence seq)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable == (ulong)2L)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
NoticeReference noticeReference;
|
|
this.noticeRef = noticeReference;
|
|
throw new NullReferenceException();
|
|
}
|
|
Asn1Encodable asn1Encodable2;
|
|
if (asn1Encodable2 != (ulong)1L)
|
|
{
|
|
Asn1Encodable asn1Encodable3;
|
|
if (asn1Encodable3 == 0)
|
|
{
|
|
this.noticeRef = (ulong)0L;
|
|
this.explicitText = (ulong)0L;
|
|
return;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
else
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
NoticeReference noticeReference2;
|
|
if (parser2 != 0 && parser2 != 0)
|
|
{
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
this.noticeRef = noticeReference2;
|
|
this.explicitText = (ulong)0L;
|
|
return;
|
|
}
|
|
this.noticeRef = (ulong)0L;
|
|
DisplayText instance = DisplayText.GetInstance(noticeReference2);
|
|
this.explicitText = instance;
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A78C RID: 42892 RVA: 0x0026FAC0 File Offset: 0x0026DCC0
|
|
[Token(Token = "0x600A78C")]
|
|
[Address(RVA = "0x2777A50", Offset = "0x2776450", VA = "0x182777A50")]
|
|
public static UserNotice GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
Asn1Sequence instance;
|
|
if (obj == 0)
|
|
{
|
|
instance = Asn1Sequence.GetInstance(obj);
|
|
return new UserNotice(instance);
|
|
}
|
|
if (instance != 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A4A RID: 6730
|
|
// (get) Token: 0x0600A78D RID: 42893 RVA: 0x0026FAF4 File Offset: 0x0026DCF4
|
|
[Token(Token = "0x17001A4A")]
|
|
public virtual NoticeReference NoticeRef
|
|
{
|
|
[Token(Token = "0x600A78D")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
|
get
|
|
{
|
|
return this.noticeRef;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A4B RID: 6731
|
|
// (get) Token: 0x0600A78E RID: 42894 RVA: 0x0026FB08 File Offset: 0x0026DD08
|
|
[Token(Token = "0x17001A4B")]
|
|
public virtual DisplayText ExplicitText
|
|
{
|
|
[Token(Token = "0x600A78E")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
|
get
|
|
{
|
|
return this.explicitText;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A78F RID: 42895 RVA: 0x0026FB1C File Offset: 0x0026DD1C
|
|
[Token(Token = "0x600A78F")]
|
|
[Address(RVA = "0x2777B50", Offset = "0x2776550", VA = "0x182777B50", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.noticeRef != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
NoticeReference noticeReference = this.noticeRef;
|
|
if (noticeReference != 0)
|
|
{
|
|
}
|
|
array[0] = noticeReference;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.explicitText != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DisplayText displayText = this.explicitText;
|
|
if (displayText != 0)
|
|
{
|
|
}
|
|
array2[0] = displayText;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006CD5 RID: 27861
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006CD5")]
|
|
private readonly NoticeReference noticeRef;
|
|
|
|
// Token: 0x04006CD6 RID: 27862
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006CD6")]
|
|
private readonly DisplayText explicitText;
|
|
}
|
|
}
|