summary refs log tree commit diff
path: root/crypto/src/asn1/crmf/AuthenticatorControl.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/crmf/AuthenticatorControl.cs')
-rw-r--r--crypto/src/asn1/crmf/AuthenticatorControl.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/AuthenticatorControl.cs b/crypto/src/asn1/crmf/AuthenticatorControl.cs
new file mode 100644
index 000000000..060088b1f
--- /dev/null
+++ b/crypto/src/asn1/crmf/AuthenticatorControl.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Org.BouncyCastle.Asn1.Crmf
+{
+    public class AuthenticatorControl:IControl
+    {
+
+        private static readonly DerObjectIdentifier type = CrmfObjectIdentifiers.id_regCtrl_authenticator;
+
+        private readonly DerUtf8String token;
+
+        public AuthenticatorControl(DerUtf8String token)
+        {
+            this.token = token;
+        }
+
+        public AuthenticatorControl(String token)
+        {
+            this.token = new DerUtf8String(token);
+        }
+
+        public DerObjectIdentifier Type
+        {
+            get { return type; }
+        }
+
+        public Asn1Encodable Value {
+            get { return token; }
+        }
+    }
+}