Package com.gemalto.mfs.mwsdk.dcm
Class AbstractWalletPinService
- java.lang.Object
-
- com.gemalto.mfs.mwsdk.dcm.AbstractWalletPinService
-
public abstract class AbstractWalletPinService extends java.lang.Object
This class is mainly used to setup a Wallet PIN service which the MPA needs to implement. Depending on the first card profile provisioned into the device, underlying abstract methods may be called to manage the Wallet PIN use cases. The MPA shall implement this class to pass toWalletPinManager.bindAbstractWalletPinService(AbstractWalletPinService)
method invocation.
-
-
Constructor Summary
Constructors Constructor Description AbstractWalletPinService()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
onSetWalletPin(CHCodeVerifier chCodeVerifier)
A method to set a new wallet PIN.abstract void
onVerifyWalletPin(CHCodeVerifier chCodeVerifier)
A method to verify the current wallet PIN.abstract WalletPinEventListener
setupListener()
A method to setupWalletPinEventListener
to listen for events during the wallet PIN management.
-
-
-
Method Detail
-
onSetWalletPin
public abstract void onSetWalletPin(CHCodeVerifier chCodeVerifier)
A method to set a new wallet PIN. The verifier parameter will accept 2 PIN entries. The later is used to confirm the first wallet PIN entered.- Parameters:
chCodeVerifier
- - An object that accepts PIN entries. SeeCHCodeVerifier
.
-
onVerifyWalletPin
public abstract void onVerifyWalletPin(CHCodeVerifier chCodeVerifier)
A method to verify the current wallet PIN. The verifier parameter will be used for PIN entry. Callbacks will be dispatched in WalletPinEventListener
IMPORTANT:
In each failed verification, the allowed remaining attempts for invalid PIN re-entry will be decremented by 1. Meanwhile, it will be reset after a successful attempt.- Parameters:
chCodeVerifier
- - An object that accepts PIN entries. SeeCHCodeVerifier
.
-
setupListener
public abstract WalletPinEventListener setupListener()
A method to setupWalletPinEventListener
to listen for events during the wallet PIN management.
-
-