blob: 842825b882dc8c1473158d92fafcbb94ee4992df (
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
|
using Org.BouncyCastle.Asn1;
namespace Org.BouncyCastle.Asn1.Smime
{
/**
* Handler for creating a vector S/MIME Capabilities
*/
public class SmimeCapabilityVector
{
private readonly Asn1EncodableVector capabilities = new Asn1EncodableVector();
public void AddCapability(
DerObjectIdentifier capability)
{
capabilities.Add(new DerSequence(capability));
}
public void AddCapability(
DerObjectIdentifier capability,
int value)
{
capabilities.Add(new DerSequence(capability, new DerInteger(value)));
}
public void AddCapability(
DerObjectIdentifier capability,
Asn1Encodable parameters)
{
capabilities.Add(new DerSequence(capability, parameters));
}
public Asn1EncodableVector ToAsn1EncodableVector()
{
return capabilities;
}
}
}
|