Package com.gemalto.mfs.mwsdk.dcm
Class AbstractWalletPinService
java.lang.Object
com.gemalto.mfs.mwsdk.dcm.AbstractWalletPinService
This class is mainly used to set up a wallet PIN service which MPA needs to implement. Depending
on the first card profile provisioned into the device, the underlying abstract methods may be called to
manage the Wallet PIN use cases. MPA implements this class to invoke the
WalletPinManager.bindAbstractWalletPinService(AbstractWalletPinService) method.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidonSetWalletPin(CHCodeVerifier chCodeVerifier) A method to set a new wallet PIN.abstract voidonVerifyWalletPin(CHCodeVerifier chCodeVerifier) A method to verify the current wallet PIN.abstract WalletPinEventListenerA method to set upWalletPinEventListenerto listen for events during the wallet PIN management.
-
Constructor Details
-
AbstractWalletPinService
public AbstractWalletPinService()
-
-
Method Details
-
onSetWalletPin
A method to set a new wallet PIN. The verifier parameter will accept two PIN entries. The first entry is the desired new wallet PIN, while the second entry serves as a confirmation to ensure accuracy of the new wallet PIN entered. -
onVerifyWalletPin
A method to verify the current wallet PIN. The verifier parameter will be used for PIN entry. Callbacks will be dispatched in WalletPinEventListener
Important:
For each failed verification, the remaining attempts allowed for invalid PIN re-entry will be decremented by 1. The number of attempts allowed will be reset after a successful verification.- Parameters:
chCodeVerifier- An object that accepts PIN entries. SeeCHCodeVerifier.
-
setupListener
A method to set upWalletPinEventListenerto listen for events during the wallet PIN management.
-