diff options
author | Megan Woods <megan@flygfisk.com> | 2019-01-15 14:55:39 +1100 |
---|---|---|
committer | Megan Woods <megan@flygfisk.com> | 2019-01-15 14:55:39 +1100 |
commit | 6614f7fda643ebb09a1c21979a067fab17c3ab6c (patch) | |
tree | fffaf374910dd8eb533fe23139d896fe8d42fbdd /crypto/src/crmf/RegTokenControl.cs | |
parent | first cut on Pkcs8 (diff) | |
download | BouncyCastle.NET-ed25519-6614f7fda643ebb09a1c21979a067fab17c3ab6c.tar.xz |
Updated C# doc.
Removed EJBCA EnrollmentTest as it s not viable to produce an example on .Net Framework 2.0
Diffstat (limited to 'crypto/src/crmf/RegTokenControl.cs')
-rw-r--r-- | crypto/src/crmf/RegTokenControl.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/crypto/src/crmf/RegTokenControl.cs b/crypto/src/crmf/RegTokenControl.cs index b53ce1922..90e956f67 100644 --- a/crypto/src/crmf/RegTokenControl.cs +++ b/crypto/src/crmf/RegTokenControl.cs @@ -14,20 +14,36 @@ namespace Org.BouncyCastle.Crmf private readonly DerUtf8String token; + /// <summary> + /// Basic constructor - build from a UTF-8 string representing the token. + /// </summary> + /// <param name="token">UTF-8 string representing the token.</param> public RegTokenControl(DerUtf8String token) { this.token = token; } - + /// <summary> + /// Basic constructor - build from a string representing the token. + /// </summary> + /// <param name="token">string representing the token.</param> public RegTokenControl(String token) { this.token = new DerUtf8String(token); } + /// <summary> + /// Return the type of this control. + /// </summary> + /// <returns>CRMFObjectIdentifiers.id_regCtrl_regToken</returns> public DerObjectIdentifier Type { get { return type; } } + + /// <summary> + /// Return the token associated with this control (a UTF8String). + /// </summary> + /// <returns>a UTF8String.</returns> public Asn1Encodable Value { get { return token; } |