Interface MGCardLifeCycleManager


public interface MGCardLifeCycleManager
The card life cycle manager component as what the name suggests manages the life cycle (e.g. suspend, resume, delete) of a digitized card. All events will be dispatched via a listener. After successful request, the CPS will send a command to the CPS SDK to fulfill the request.
  • Method Details

    • suspendCard

      void suspendCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener)
      An asynchronous method to SUSPEND the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
    • suspendCard

      String suspendCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList)
      An asynchronous method to SUSPEND the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      Returns:
      the String of correlationId
      Since:
      2.3
    • suspendCard

      String suspendCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList, String accessToken)
      An asynchronous method to SUSPEND the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      accessToken - Access token to authorize the MPA request.
      Returns:
      the String of correlationId
      Since:
      4.1
    • resumeCard

      void resumeCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener)
      An asynchronous method to RESUME the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
    • resumeCard

      String resumeCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList)
      An asynchronous method to RESUME the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      Returns:
      the String of correlationId
      Since:
      2.3
    • resumeCard

      String resumeCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList, String accessToken)
      An asynchronous method to RESUME the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      accessToken - Access token to authorize the MPA request.
      Returns:
      the String of correlationId
      Since:
      4.1
    • deleteCard

      void deleteCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener)
      An asynchronous method to DELETE the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
    • deleteCard

      String deleteCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList)
      An asynchronous method to DELETE the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      Returns:
      the String of correlationId
      Since:
      2.3
    • deleteCard

      String deleteCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, List<KeyValues> keyValueList, String accessToken)
      An asynchronous method to DELETE the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      accessToken - Access token to authorize the MPA request.
      Returns:
      the String of correlationId
      Since:
      4.1
    • updateCard

      String updateCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, byte[] authenticationToken, List<KeyValues> keyValueList)
      An asynchronous method to UPDATE the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      authenticationToken - Token computed by the Issuer that has authenticated the end user, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      Returns:
      the String of correlationId
      Since:
      2.3
    • updateCard

      String updateCard(String digitalCardId, MGCardLifecycleEventListener mgCardLifecycleEventListener, String issuerID, byte[] authenticationToken, List<KeyValues> keyValueList, String accessToken)
      An asynchronous method to UPDATE the digitized card.
      Parameters:
      digitalCardId - the unique digitalCardId of the card.
      Digitized card ID shared by the HCE platform components (Different than token ID)
      mgCardLifecycleEventListener - listener to the card lifecycle events.
      issuerID - Unique identifier of the issuer, provided if the MPA has this value.
      authenticationToken - Token computed by the Issuer that has authenticated the end user, provided if the MPA has this value.
      keyValueList - the list of keyValuesObject
      accessToken - Access token to authorize the MPA request.
      Returns:
      the String of correlationId
      Since:
      4.1