Package com.gemalto.mfs.mwsdk.dcm
Class WalletPinManager
java.lang.Object
com.gemalto.mfs.mwsdk.dcm.WalletPinManager
A class to manage the wallet PIN use case (for example, set, change or verify the PIN).
-
Method Summary
Modifier and TypeMethodDescriptionvoidaskWalletPinForLVT(boolean flag) Deprecated.this API is deprecated since 6.5.0.voidbindAbstractWalletPinService(AbstractWalletPinService abstractWalletPinService) A method to link the instance ofWalletPinManagerwithAbstractWalletPinServicefor performing wallet PIN operations.static WalletPinManagerA method to get the instance ofWalletPinManagerto perform wallet PIN operations.intAn API to get the number of remaining retries for invalid wallet PIN entry.voidAn API to initialize the wallet PIN change.voidA method to invoke set new wallet PIN if it has not been set before.booleanDeprecated.this API is deprecated since 6.5.0.booleanA method to check if the wallet PIN has been previously set viaAbstractWalletPinService.onSetWalletPin(CHCodeVerifier).
-
Method Details
-
getInstance
A method to get the instance ofWalletPinManagerto perform wallet PIN operations.- Returns:
instance
-
bindAbstractWalletPinService
A method to link the instance ofWalletPinManagerwithAbstractWalletPinServicefor performing wallet PIN operations.- Parameters:
abstractWalletPinService-
-
isWalletPinSet
A method to check if the wallet PIN has been previously set viaAbstractWalletPinService.onSetWalletPin(CHCodeVerifier). Note: This should be done before using any wallet PIN related functions.- Returns:
- A boolean true value true if the wallet PIN has been set, or a false value if it is not set.
- Throws:
WalletPinException
-
invokeSetWalletPin
A method to invoke set new wallet PIN if it has not been set before. Calls the implementedAbstractWalletPinService.onSetWalletPin(CHCodeVerifier)to set a new wallet PIN.- Throws:
WalletPinException
-
invokeChangeWalletPin
An API to initialize the wallet PIN change. The SDK will control the flow using the implementedAbstractWalletPinServiceclass. The flow sequence is as follows:
(1)AbstractWalletPinService.onVerifyWalletPin(CHCodeVerifier)
(2)AbstractWalletPinService.onSetWalletPin(CHCodeVerifier)- Throws:
WalletPinException
-
askWalletPinForLVT
Deprecated.this API is deprecated since 6.5.0. To enforce WalletPIN LVT payment with authentication, refer toCustomConfiguration.Builderto enforce authentication for LVT transaction.This API is used whenever the end user chooses to enable/disable the wallet PIN entry for low value transactions. By default, no PIN is required for LVT. The flow sequence is as follows:
(1)AbstractWalletPinService.onVerifyWalletPin(CHCodeVerifier)- Parameters:
flag- - True to always ask for a wallet pin on LVT. False if wallet pin skipped on LVT.- Throws:
WalletPinException
-
isAskWalletPinForLVT
Deprecated.this API is deprecated since 6.5.0. To enforce WalletPIN LVT payment with authentication, refer toCustomConfiguration.Builderto enforce authentication for LVT transaction.A method to check if the wallet PIN has been previously set.- Returns:
- True to always ask for a wallet pin on LVT. False if wallet pin skipped on LVT.
- Throws:
WalletPinException
-
getRemainingRetries
An API to get the number of remaining retries for invalid wallet PIN entry.- Returns:
- number of remaining retries.
- Throws:
WalletPinException
-