#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crmf
{
public class RegTokenControl
: IControl
{
private static readonly DerObjectIdentifier type = CrmfObjectIdentifiers.id_regCtrl_regToken;
private readonly DerUtf8String token;
///
/// Basic constructor - build from a UTF-8 string representing the token.
///
/// UTF-8 string representing the token.
public RegTokenControl(DerUtf8String token)
{
this.token = token;
}
///
/// Basic constructor - build from a string representing the token.
///
/// string representing the token.
public RegTokenControl(string token)
{
this.token = new DerUtf8String(token);
}
///
/// Return the type of this control.
///
/// CRMFObjectIdentifiers.id_regCtrl_regToken
public DerObjectIdentifier Type
{
get { return type; }
}
///
/// Return the token associated with this control (a UTF8String).
///
/// a UTF8String.
public Asn1Encodable Value
{
get { return token; }
}
}
}
#pragma warning restore
#endif