Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set CDCVM method

Overview

The digital card profile defines whether it supports CDCVM.

For a given wallet instance, the first provisioned card that supports CDCVM defines the CDCVM method used by the digital wallet application.

NFC Wallet SDK does not allow cards with different CDCVM methods to co-exist in the same wallet instance.

As described in Handle CDCVM, most NFC Wallet programs use CDCVM.

In this section, you set the CDCVM method based on device capabilities during Tokenization of the first card that supports CDCVM.

SDK integration

Check whether CDCVM is supported and set

Use CHVerificationManager to check whether CDCVM is supported and already configured for the current wallet instance:

  • CHVerificationManager.isFCDCVMSupported() checks whether CDCVM is supported.

  • CHVerificationManager.isFCdCvmSet() checks whether the CDCVM method is already set.

  • CHVerificationManager.getDefaultFCdCvm() returns the CDCVM method used by the digital wallet application.

If CDCVM is supported and not set, initialize it as described in Set the CDCVM method.

Handle CD_CVM_REQUIRED when listing cards

If you do not set the CDCVM method and you retrieve the card list using DigitalizedCardManager.getAllCards(), the SDK can return DigitalizedCardErrorCodes.CD_CVM_REQUIRED. In such case initialize CDCVM method it as described in Set the CDCVM method.

Set the CDCVM method

Use DeviceCVMManager.initialize(...) to set the CDCVM method according to device capabilities:

  • Biometric: CHVerificationMethod.BIOMETRICS

  • Device credentials (keyguard): CHVerificationMethod.DEVICE_KEYGUARD

After you set the CDCVM method, consider scenarios where the end user changes the device unlock method. See Device unlock method update scenario.

Implementation example

Last updated

Was this helpful?