Migration to latest secure keypad version

The SecureInputBuilder class in V1 API was dropped from Protector OATH SDK V5.4 and earlier. The SecureInputBuilderV2 class in V2 API was subsequently replaced by SecureInputBuilder.

The following table shows removed/deprecated APIs and suggested replacements.

Description API NOTE
API V1 SecureInputBuilder and SecurePinpadListener Removed. This is not supported anymore.
API V2 SecureInputBuilderV2 Replaced. Use the new API SecureInputBuilder. The instance has to be kept alive till the end of the secure keypad life cycle.
API V2 SecurePinpadListenerV2 Replaced. Use the new API SecureKeypadListener.
Set encoding SecureInputBuilder.setEncoding(String) Removed. This is not used anymore.
Set subscription text SecureInputBuilder.setSubscripts(List<String>) Replaced. Use the new API setKeys(List<Character>, List<String>)
Configure button border color SecureInputBuilder.setButtonBorderColor Replaced. Use the new API: setKeypadFrameColor(int) or setKeypadGridGradientColors(int, int)
Validate the configuration SecureInputBuilder.validateKeypadConfiguration() Removed. The configuration will be checked internally when calling buildKeypad.
Configure the input length SecureInputBuilder.setMaximumAndMinimumInputLength() Maximum length is updated to 19
Configure background image SecureInputBuilder.setScreenBackgroundImage(Bitmap) Replaced. Added the new parameter to configure the image position setScreenBackgroundImage(Bitmap, ImageMode)
Build the keypad SecureInputBuilder.buildPinpad(bool, bool, bool, SecurePinpadListener) Replaced. Use the new API buildKeypad(bool, bool, bool, SecureKeypadListener). The object has to be kept alive till the end of the secure keypad life cycle.
Set keys SecureInputBuilder.setKeys(String) Replaced. Use the new API setKeys(List<Character>, List<String>)