blob: 2a152f81d45b080ea2da6caa525128caae67bf8c (
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
|
using System;
using System.Collections.Generic;
namespace Org.BouncyCastle.Utilities.IO.Pem
{
public class PemObject
: PemObjectGenerator
{
private string type;
private IList<PemHeader> headers;
private byte[] content;
public PemObject(string type, byte[] content)
: this(type, new List<PemHeader>(), content)
{
}
public PemObject(string type, IList<PemHeader> headers, byte[] content)
{
this.type = type;
this.headers = new List<PemHeader>(headers);
this.content = content;
}
public string Type
{
get { return type; }
}
public IList<PemHeader> Headers
{
get { return headers; }
}
public byte[] Content
{
get { return content; }
}
public PemObject Generate()
{
return this;
}
}
}
|