public class HOTPUtil extends Object
HOTP
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 © 2018 JBoss by Red Hat. All rights reserved.