TOTP
TOTP
public class TOTP
extends Object java.lang.Object
↳ com.onekosmos.blockid.sdk.totp.TOTP
Utility class to work with time based OTP feature.
Constructor
public TOTP()
- Creates an object of TOTP
Method Summary
| type | parameter | summary |
|---|---|---|
| String | getOTP() | Returns OTP. The default expiry time is 30 seconds |
| String | getRemainingSecs() | Returns remaining time after which the OTP will expire |
Method Details
getOTP
public String getOTP()
- Returns OTP. The new OTP value is valid for 30 seconds only. Same OTP value will be returned If this method is called multiple times in 30 seconds timeframe
getRemainingSecs
public long getRemainingSecs()
- Returns remaining time after which the OTP will expire