示例#1
0
 /// <summary>
 /// Create a new Authenticator object
 /// </summary>
 public Authenticator(int codeDigits = DEFAULT_CODE_DIGITS, HMACTypes hmacType = HMACTypes.SHA1, int period = DEFAULT_PERIOD)
 {
     CodeDigits = codeDigits;
     HMACType   = hmacType;
     Period     = period;
 }
 /// <summary>
 /// Create a new Authenticator object
 /// </summary>
 public GAPAuthenticatorValueDTO(int codeDigits = DEFAULT_CODE_DIGITS, HMACTypes hmacType = HMACTypes.SHA1, int period = DEFAULT_PERIOD) : this()
 {
     CodeDigits = codeDigits;
     HMACType   = hmacType;
     Period     = period;
 }