public class DsFormattingTools extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DsFormattingTools.VerifyType
Supported checkdigit algorithm for challenge.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkDigit(DsFormattingTools.VerifyType mode,
SecureString challenge)
Check validity of a challenge against a checksum mode.
|
static int |
getDynamicSignatureTemplateId(SecureString challenge)
Get the Dynamic Signature template ID encoded by the challenge.
|
public static int getDynamicSignatureTemplateId(SecureString challenge) throws InvalidDigitChecksumException
challenge
- The challenge of the transaction, must be non-null.InvalidDigitChecksumException
- When the challenge has an incorrect check digitpublic static boolean checkDigit(DsFormattingTools.VerifyType mode, SecureString challenge)
mode
- Checksum algorithm to use, DsFormattingTools.VerifyType
define list of supported modeschallenge
- IllegalArgumentException
- When verify type or the challenge is invalid