diff options
Diffstat (limited to 'crypto/src/crmf/RegTokenControl.cs')
-rw-r--r-- | crypto/src/crmf/RegTokenControl.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/crypto/src/crmf/RegTokenControl.cs b/crypto/src/crmf/RegTokenControl.cs new file mode 100644 index 000000000..b53ce1922 --- /dev/null +++ b/crypto/src/crmf/RegTokenControl.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using Org.BouncyCastle.Crmf; +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 RegTokenControl(DerUtf8String token) + { + this.token = token; + } + + public RegTokenControl(String token) + { + this.token = new DerUtf8String(token); + } + + public DerObjectIdentifier Type + { + get { return type; } + } + public Asn1Encodable Value + { + get { return token; } + } + } +} |