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.BIOMETRICSDevice credentials (keyguard):
CHVerificationMethod.DEVICE_KEYGUARD
Implementation example
Last updated
Was this helpful?