You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
944 B

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;
}
}
}