public interface CapDevice
boolean isMode1AmountRequired()
getOtpMode1(com.gemalto.idp.mobile.authentication.AuthInput, com.gemalto.idp.mobile.core.util.SecureString, com.gemalto.idp.mobile.core.util.SecureString, java.util.Currency)
).
This method is affected by the IAF value. For example, an IAF of 0x70 does not include the amount while 0xA0 includes the amount
boolean isMode1CurrencyRequired()
getOtpMode1(com.gemalto.idp.mobile.authentication.AuthInput, com.gemalto.idp.mobile.core.util.SecureString, com.gemalto.idp.mobile.core.util.SecureString, java.util.Currency)
).
This method is affected by the IAF value. For example, an IAF of 0x70 does not include the currency while 0x80 includes the amount
SecureString getOtpMode1(AuthInput authInput, SecureString challenge, SecureString amount, Currency currency) throws IdpException
authInput
- the AuthInputchallenge
- the merchant challenge: An unpredictable number of up to 8 hexdecimal digitsamount
- the amount. If isMode1AmountRequired()
returns true
the argument is required.
Otherwise the argument is ignored.currency
- the currency of the transaction. If isMode1CurrencyRequired()
returns true
the
argument is required. Otherwise the argument is ignored.IdpRuntimeException
- when there is a cryptography operation failure.IdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.IdpStorageException
- when there is a database operation failure.WrappedCounterException
- when the ATC/counter reaches its maximum value.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpAuthException
- when the authentication mode is not supported by the token.SecureString getOtpMode2(AuthInput authInput) throws IdpException
authInput
- the AuthInputIdpRuntimeException
- when there is a cryptography operation failure.IdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.IdpStorageException
- when there is a database operation failure.WrappedCounterException
- when the ATC/counter reaches its maximum value.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpAuthException
- when the authentication mode is not supported by the token.SecureString getOtpMode2Tds(AuthInput authInput, List<SecureString> dataToSign) throws IdpException
authInput
- the AuthInputdataToSign
- the list of data to be signed, data should only contain digits, maximum 10 digit per data and maximum
10 data fields in the list. Don't pass empty data, at least one non-empty data is required.IdpRuntimeException
- when there is a cryptography operation failure.IdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.IdpStorageException
- when there is a database operation failure.WrappedCounterException
- when the ATC/counter reaches its maximum value.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpAuthException
- when the authentication mode is not supported by the token.SecureString getOtpMode3(AuthInput authInput, SecureString challenge) throws IdpException
authInput
- the AuthInputchallenge
- the login challenge: An unpredictable number of up to 8 hexdecimal digitsIdpRuntimeException
- when there is a cryptography operation failureIdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.IdpStorageException
- when there is a database operation failureWrappedCounterException
- when the ATC/counter reaches its maximum value.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpAuthException
- when the authentication mode is not supported by the token.