Class HOTPUtil


  • public class HOTPUtil
    extends Object
    Utility class for HOTP
    Since:
    Sep 15, 2010
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • HOTPUtil

        public HOTPUtil()
    • 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 validate
        secret - Shared secret
        timeValueInMins - How many mins back we need to check?
        Returns:
        Throws:
        GeneralSecurityException