public class HOTPService extends Object
Constructor and Description |
---|
HOTPService(AMIdentityRepository amIdentityRepo,
String userName,
HOTPParams hotpParams)
Constructs an instance of the HOTPService.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValidHOTP(String enteredHOTPCode)
Determines if the given OTP code matches the OTP code that was sent previously.
|
void |
sendHOTP()
Sends a otp code to the users telephone number and/or email address, based on the authentication module's
configuration settings.
|
public HOTPService(AMIdentityRepository amIdentityRepo, String userName, HOTPParams hotpParams)
amIdentityRepo
- An instance of the AMIdentityRepository.userName
- The user's name.hotpParams
- The authentication modules configuration settings.public void sendHOTP() throws AuthLoginException
AuthLoginException
- If there is a problem sending the OTP code.public boolean isValidHOTP(String enteredHOTPCode)
enteredHOTPCode
- The OTP code to verify.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.