Package org.jboss.security.otp
Class HOTPUtil
- java.lang.Object
-
- org.jboss.security.otp.HOTPUtil
-
public class HOTPUtil extends Object
Utility class forHOTP
- Since:
- Sep 15, 2010
- Author:
- Anil.Saldhana@redhat.com
-
-
Constructor Summary
Constructors Constructor Description HOTPUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
validate(String submittedOTP, byte[] secret, int timeValueInMins)
Validate a submitted OTP string
-
-
-
Method Detail
-
validate
public static boolean validate(String submittedOTP, byte[] secret, int timeValueInMins) throws GeneralSecurityException
Validate a submitted OTP string- Parameters:
submittedOTP
- OTP string to validatesecret
- Shared secrettimeValueInMins
- How many mins back we need to check?- Returns:
- Throws:
GeneralSecurityException
-
-