summary refs log tree commit diff
path: root/crypto/src/asn1/cmp/NestedMessageContent.cs
blob: 0cb2c080b0a5c2d4f375fd1f393ee2177cffa239 (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
namespace Org.BouncyCastle.Asn1.Cmp
{
    /**
     * NestedMessageContent ::= PKIMessages
     */
    public class NestedMessageContent
        : PkiMessages
    {
        public static new NestedMessageContent GetInstance(object obj)
        {
            if (obj is NestedMessageContent nestedMessageContent)
                return nestedMessageContent;

            if (obj != null)
                return new NestedMessageContent(Asn1Sequence.GetInstance(obj));

            return null;
        }

        public NestedMessageContent(PkiMessage msg)
            : base(msg)
        {
        }

        public NestedMessageContent(PkiMessage[] msgs)
            : base(msgs)
        {
        }

        public NestedMessageContent(Asn1Sequence seq)
            : base(seq)
        {
        }
    }
}