public class PasscodeGenerator extends Object
| Constructor and Description |
|---|
PasscodeGenerator(io.mosip.kernel.otpmanager.util.PasscodeGenerator.Signer signer,
int passCodeLength) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateResponseCode(byte[] value) |
String |
generateResponseCode(long state) |
public PasscodeGenerator(io.mosip.kernel.otpmanager.util.PasscodeGenerator.Signer signer,
int passCodeLength)
public String generateResponseCode(long state) throws GeneralSecurityException
state - 8-byte integer value representing internal OTP state.GeneralSecurityException - If a JCE exception occurpublic String generateResponseCode(byte[] value) throws GeneralSecurityException
value - An arbitrary byte array used as a valueGeneralSecurityException - If a JCE exception occurCopyright © 2020. All rights reserved.