Discuss this help topic in SecureBlackbox Forum

TElTOTPServer.IsPasswordValid

TElTOTPServer     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Checks one-time password validity.

Declaration

[C#]
    bool IsPasswordValid(string UserId, string Password);
    bool IsPasswordValid(string UserId, string Password, DateTime Time);
    bool IsPasswordValid(TElTOTPUser User, string Password);
    bool IsPasswordValid(TElTOTPUser User, string Password, DateTime Time);
    bool IsPasswordValid(byte[] KeySecret, int PasswordLen, int TimeInterval, int HashAlgorithm, string Password, DateTime Time);

[VB.NET]
    Function IsPasswordValid(ByVal UserId As String, ByVal Password As String) As Boolean
    Function IsPasswordValid(ByVal UserId As String, ByVal Password As String, ByVal Time As DateTime) As Boolean
    Function IsPasswordValid(ByVal User As TElTOTPUser, ByVal Password As String) As Boolean
    Function IsPasswordValid(ByVal User As TElTOTPUser, ByVal Password As String, ByVal Time As DateTime) As Boolean
    Function IsPasswordValid(ByVal KeySecret As Byte(), ByVal PasswordLen As Integer, ByVal TimeInterval As Integer, ByVal HashAlgorithm As Integer, ByVal Password As String, ByVal Time As DateTime) As Boolean

[Pascal]
    function IsPasswordValid(UserId: string; Password: string): boolean;
    function IsPasswordValid(UserId: string; Password: string; Time: TDateTime): boolean;
    function IsPasswordValid(User: TElTOTPUser; Password: string): boolean;
    function IsPasswordValid(User: TElTOTPUser; Password: string; Time: TDateTime): boolean;

[C++]
    bool IsPasswordValid(const std::string &UserId, const std::string &Password);
    bool IsPasswordValid(const std::string &UserId, const std::string &Password, int64_t Time);
    bool IsPasswordValid(TElTOTPUser &User, const std::string &Password);
    bool IsPasswordValid(TElTOTPUser *User, const std::string &Password);
    bool IsPasswordValid(TElTOTPUser &User, const std::string &Password, int64_t Time);
    bool IsPasswordValid(TElTOTPUser *User, const std::string &Password, int64_t Time);
    bool IsPasswordValid(const std::vector<uint8_t> &KeySecret, int32_t PasswordLen, int32_t TimeInterval, int32_t HashAlgorithm, const std::string &Password, int64_t Time);

[PHP]
    bool IsPasswordValid(string $UserId, string $Password)
    bool IsPasswordValid(string $UserId, string $Password, DateTime $Time)
    bool IsPasswordValid(TElTOTPUser $User, string $Password)
    bool IsPasswordValid(TElTOTPUser $User, string $Password, DateTime $Time)
    bool IsPasswordValid(array of byte|string|NULL $KeySecret, integer $PasswordLen, integer $TimeInterval, integer $HashAlgorithm, string $Password, DateTime $Time)

[Java]
    boolean isPasswordValid(byte[] KeySecret, int PasswordLen, int TimeInterval, int HashAlgorithm, String Password, Date Time);
    boolean isPasswordValid(String UserId, String Password);
    boolean isPasswordValid(TElTOTPUser User, String Password, Date Time);
    boolean isPasswordValid(String UserId, String Password, Date Time);
    boolean isPasswordValid(TElTOTPUser User, String Password);

Parameters

  • UserId - contains user's ID.
  • Password - the one-time password provided by the user.
  • Time - specifies the time (in UTC) when the user is trying to authenticate with the password.
  • User - the object containing user info.
  • KeySecret -
  • PasswordLen -
  • TimeInterval -
  • HashAlgorithm -

Return value

    Returns True if the one-time pasword is valid, and False otherwise.

Description

    Use this method to check the validity of the one-time pasword provided by user.

Discuss this help topic in SecureBlackbox Forum