public class HOTPUtil extends Object
HOTP
Constructor and Description |
---|
HOTPUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
validate(String submittedOTP,
byte[] secret,
int timeValueInMins)
Validate a submitted OTP string
|
public static boolean validate(String submittedOTP, byte[] secret, int timeValueInMins) throws GeneralSecurityException
submittedOTP
- OTP string to validatesecret
- Shared secrettimeValueInMins
- How many mins back we need to check?GeneralSecurityException
Copyright © 2019 JBoss by Red Hat. All rights reserved.