public interface AsyncOTPGenerator extends OTPGenerator
Modifier and Type | Field and Description |
---|---|
static String |
AUTHMODE_CHALLENGE_RESPONSE |
static String |
AUTHMODE_MUTUAL_CHALLENGE_RESPONSE |
static String |
AUTHMODE_SIGNATURE |
static String |
AUTHMODE_SIGNATURE_SERVER_AUTH |
Modifier and Type | Method and Description |
---|---|
char[] |
computeClientResponse(char[] password,
char[] clientChallenge,
char[] serverChallenge,
InputAlgorithmParameters params)
Compute the client response for one-way challenge-response with optional parameters.
|
char[] |
computeResponse(char[] password,
char[] challenge,
InputAlgorithmParameters params)
Compute the response for one-way challenge-response.
|
char[] |
computeServerResponse(char[] password,
char[] clientChallenge,
char[] serverChallenge,
InputAlgorithmParameters params)
Compute the server response for one-way challenge-response or for two-way signature.
|
char[] |
computeSignature(char[] password,
char[] signatureChallenge,
char[] clientChallenge,
InputAlgorithmParameters params)
Compute the signature for one-way or two-way signature.
|
char[] |
formatSignatureChallenge(char[][] inputData)
For transaction signing use cases, this method permits a challenge to be formatted according to standard based on several inputs provided by the user.
|
char[] |
getChallenge()
Returns a challenge according to format specified in OCRA suit for one-way use cases (challenge-response and signature).
|
getAlgorithmParameters, getName, getStandardVersion, getType, getVersion
static final String AUTHMODE_CHALLENGE_RESPONSE
static final String AUTHMODE_MUTUAL_CHALLENGE_RESPONSE
static final String AUTHMODE_SIGNATURE
static final String AUTHMODE_SIGNATURE_SERVER_AUTH
char[] getChallenge()
char[] computeResponse(char[] password, char[] challenge, InputAlgorithmParameters params) throws InternalException, UnsupportedDeviceException, AuthenticationException, InvalidPasswordException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
password
- Password protecting the OTP keychallenge
- Challengeparams
- Additional dataLostCredentialsException
- if key securing the transaction have been wipedInternalException
- if an unexpected error occurred.InvalidPasswordException
- if password validation fails.AuthenticationException
- if password is incorrectUnsupportedDeviceException
- if device is not supported by policy.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.char[] computeSignature(char[] password, char[] signatureChallenge, char[] clientChallenge, InputAlgorithmParameters params) throws UnsupportedDeviceException, AuthenticationException, InvalidPasswordException, InternalException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
password
- Password protecting the OTP keysignatureChallenge
- Challenge to signclientChallenge
- The challenge for the clientparams
- The params allow you to pass additional dataLostCredentialsException
- if key securing the transaction have been wipedInternalException
- if an unexpected error occurred.InvalidPasswordException
- if password validation fails.AuthenticationException
- if password is incorrectUnsupportedDeviceException
- if device is not supported by policy.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.char[] computeClientResponse(char[] password, char[] clientChallenge, char[] serverChallenge, InputAlgorithmParameters params) throws UnsupportedDeviceException, AuthenticationException, InvalidPasswordException, InternalException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
password
- Password protecting the OTP keyclientChallenge
- Client challengeserverChallenge
- Server challengeparams
- Additional dataLostCredentialsException
- if key securing the transaction have been wipedInternalException
- if an unexpected error occurred.InvalidPasswordException
- if password validation fails.AuthenticationException
- if password is incorrectUnsupportedDeviceException
- if device is not supported by policy.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.char[] computeServerResponse(char[] password, char[] clientChallenge, char[] serverChallenge, InputAlgorithmParameters params) throws UnsupportedDeviceException, AuthenticationException, InvalidPasswordException, InternalException, LostCredentialsException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
password
- Password protecting the OTP keyclientChallenge
- Client challengeserverChallenge
- Server challengeparams
- Additional dataLostCredentialsException
- if key securing the transaction have been wipedInternalException
- if an unexpected error occurred.InvalidPasswordException
- if password validation fails.AuthenticationException
- if password is incorrectUnsupportedDeviceException
- if device is not supported by policy.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.char[] formatSignatureChallenge(char[][] inputData) throws InvalidChallengeException
inputData
- Array of input data provided by the user.InvalidChallengeException
- if input data does not allow to format a valid challenge with respect to the OTP algorithm parametersCopyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.