培训考核三期,新版培训,网页版培训登录器
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.
 
 

41 lines
1.1 KiB

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
namespace BestHTTP.SecureProtocol.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;
}
}
}
#pragma warning restore
#endif