ValidatePassword Method
Validates a Time-Based or HMAC-Based One Time Password.
Syntax
[VB.NET] Public Function ValidatePassword() As Boolean
[C#] public bool ValidatePassword();
Remarks
This method validates a Time-Based or HMAC-Based One Time Password. The PasswordAlgorithm property specifies which algorithm to use.
The following properties are applicable when calling ValidatePassword.
- Password (required)
- PasswordAlgorithm
- Secret (required)
- Counter (required for HMAC-Based One Time Password)
- TimeStep (applicable for Time-Based One Time Password)
The method will return True if the password is validated, False otherwise.
NOTE: This method has a corresponding asynchronous version (ValidatePasswordAsync) for use in the Xamarin environment.