blob: fc73fac1b9606a513c360453ed59c1d11ce50de8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
using System;
namespace Org.BouncyCastle.Asn1.Cmp
{
/**
* NestedMessageContent ::= PKIMessages
*/
public class NestedMessageContent
: PkiMessages
{
public static new NestedMessageContent GetInstance(object obj)
{
if (obj == null)
return null;
if (obj is NestedMessageContent nestedMessageContent)
return nestedMessageContent;
if (obj is PkiMessages pkiMessages)
return new NestedMessageContent(pkiMessages);
#pragma warning disable CS0618 // Type or member is obsolete
return new NestedMessageContent(Asn1Sequence.GetInstance(obj));
#pragma warning restore CS0618 // Type or member is obsolete
}
public static new NestedMessageContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
{
return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
}
public NestedMessageContent(PkiMessage msg)
: base(msg)
{
}
public NestedMessageContent(PkiMessage[] msgs)
: base(msgs)
{
}
[Obsolete("Use 'GetInstance' instead")]
public NestedMessageContent(Asn1Sequence seq)
: base(seq)
{
}
internal NestedMessageContent(PkiMessages other)
: base(other)
{
}
}
}
|