public class OtpProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INTERVAL
Default passcode timeout period (in seconds)
|
| Constructor and Description |
|---|
OtpProvider() |
OtpProvider(int interval) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNextCode(String secret,
long time) |
boolean |
verifyCode(String secret,
long time,
String code,
int window) |
public static final int DEFAULT_INTERVAL
Copyright © 2022. All Rights Reserved.