summary refs log tree commit diff
path: root/crypto/src/crmf/AuthenticatorControl.cs
diff options
context:
space:
mode:
authorDavid Hook <dgh@bouncycastle.org>2019-01-14 18:10:49 +1100
committerDavid Hook <dgh@bouncycastle.org>2019-01-14 18:10:49 +1100
commita723aca1e07f57af70d7596a4fe3961045cdb0d9 (patch)
tree9c2c3b608e823c2705855a63069d3d8326fecaf5 /crypto/src/crmf/AuthenticatorControl.cs
parentNist algs and ProtectedMessageTests (diff)
downloadBouncyCastle.NET-ed25519-a723aca1e07f57af70d7596a4fe3961045cdb0d9.tar.xz
packaging fix
Diffstat (limited to 'crypto/src/crmf/AuthenticatorControl.cs')
-rw-r--r--crypto/src/crmf/AuthenticatorControl.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/crypto/src/crmf/AuthenticatorControl.cs b/crypto/src/crmf/AuthenticatorControl.cs
new file mode 100644

index 000000000..7803c4418 --- /dev/null +++ b/crypto/src/crmf/AuthenticatorControl.cs
@@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using Org.BouncyCastle.Asn1; +using Org.BouncyCastle.Asn1.Crmf; + +namespace Org.BouncyCastle.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; } + } + } +}