26 lines
519 B
C#
26 lines
519 B
C#
using Org.BouncyCastle.Asn1;
|
|
using Org.BouncyCastle.Asn1.Crmf;
|
|
|
|
namespace Org.BouncyCastle.Crmf;
|
|
|
|
public class RegTokenControl : IControl
|
|
{
|
|
private static readonly DerObjectIdentifier type = CrmfObjectIdentifiers.id_regCtrl_regToken;
|
|
|
|
private readonly DerUtf8String token;
|
|
|
|
public DerObjectIdentifier Type => type;
|
|
|
|
public Asn1Encodable Value => token;
|
|
|
|
public RegTokenControl(DerUtf8String token)
|
|
{
|
|
this.token = token;
|
|
}
|
|
|
|
public RegTokenControl(string token)
|
|
{
|
|
this.token = new DerUtf8String(token);
|
|
}
|
|
}
|