Class AbstractWalletPinService

java.lang.Object
com.gemalto.mfs.mwsdk.dcm.AbstractWalletPinService

public abstract class AbstractWalletPinService extends Object
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 Details

    • AbstractWalletPinService

      public AbstractWalletPinService()
  • Method Details

    • onSetWalletPin

      public abstract void onSetWalletPin(CHCodeVerifier chCodeVerifier)
      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

      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:
      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. See CHCodeVerifier.
    • setupListener

      public abstract WalletPinEventListener setupListener()
      A method to set up WalletPinEventListener to listen for events during the wallet PIN management.