HID APPROVE SDK  6.0
HID Approve SDK for Android
com.hidglobal.ia.service.otp.SyncOTPGenerator Interface Reference

Extends the OTP generator to support synchronous time or event based generation. (HOTP, TOTP) More...

Inheritance diagram for com.hidglobal.ia.service.otp.SyncOTPGenerator:
com.hidglobal.ia.service.otp.OTPGenerator

Public Member Functions

char [] getOTP (char[] pwd) throws PasswordExpiredException, AuthenticationException, UnsupportedDeviceException, InternalException, FingerprintAuthenticationRequiredException, PasswordRequiredException, InvalidParameterException
 
- Public Member Functions inherited from com.hidglobal.ia.service.otp.OTPGenerator
AlgorithmParameters getAlgorithmParameters ()
 
String getName ()
 
String getStandardVersion ()
 
String getType ()
 
String getVersion ()
 

Detailed Description

Extends the OTP generator to support synchronous time or event based generation. (HOTP, TOTP)

Computes OTP using an internal challenge (time or event based).

Member Function Documentation

◆ getOTP()

Compute the one-time password.

Parameters
pwdOTP key password (if protected by password)
Returns
The formatted OTP.
Exceptions
PasswordExpiredExceptionif password is expired.
AuthenticationExceptionif password is incorrect
UnsupportedDeviceExceptionif device is not supported by policy.
InternalExceptionif an unexpected error occurred.
FingerprintAuthenticationRequiredExceptionif fingerprint authentication is required by policy.
PasswordRequiredExceptionif required password was not provided.