Package com.gemalto.mfs.mwsdk.cdcvm
Interface DeviceCVMVerifier
public interface DeviceCVMVerifier
Device CVM (biometric fingerprint or device keyguard) verification interface. Use this class to start the biometric fingerprint
authentication or device keyguard authentication.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfirmCredential(CharSequence title, CharSequence description) Deprecated.voidDelegated CDCVM by user.voidonDelegatedAuthPerformed(long timeStamp) Authentication is performed successfully by end user through MPA.voidsetCVMType(CVMType cvm) An API to set the CVM type for biometric fingerprint or device keyguard.voidsetDeviceCVMVerifyListener(DeviceCVMVerifyListener pDeviceCVMVerifyListener) An API to set the callback to delegate the biometric fingerprint authentication result to MPA.voidsetKeyguardActivity(android.app.Activity keyguardRootActivity) An API to manage the device keyguard mechanism (PIN/pattern/password).voidsetKeyguardActivity(android.app.Activity keyguardRootActivity, Class keyguardActivityClass) An API to manage the device keyguard mechanism (PIN/pattern/password).voidstartAuthentication(DeviceCVMVerifierInput deviceCVMVerifierInput) This method starts the end-user authentication by using the biometric fingerprint or device keyguard authentication.
-
Method Details
-
startAuthentication
This method starts the end-user authentication by using the biometric fingerprint or device keyguard authentication. MPA is expected to launch either biometric fingerprint or device keyguard authentication screen to the end user according to the chosen CHVerificationMethod.- Parameters:
deviceCVMVerifierInput- The object containing the input needed for authentication.
-
setDeviceCVMVerifyListener
An API to set the callback to delegate the biometric fingerprint authentication result to MPA.- Parameters:
pDeviceCVMVerifyListener- Callback for either biometric fingerprint or device keyguard authentication status.
-
setKeyguardActivity
void setKeyguardActivity(android.app.Activity keyguardRootActivity) An API to manage the device keyguard mechanism (PIN/pattern/password).- Parameters:
keyguardRootActivity- UsesetKeyguardActivity(Activity,Class)instead.
-
setKeyguardActivity
void setKeyguardActivity(@NonNull android.app.Activity keyguardRootActivity, @NonNull Class keyguardActivityClass) An API to manage the device keyguard mechanism (PIN/pattern/password).- Parameters:
keyguardRootActivity-keyguardActivityClass-
-
confirmCredential
Deprecated.6.4.0, usestartAuthentication(DeviceCVMVerifierInput)instead.An API to launch the device keyguard mechanism. The device keyguard can be a PIN/pattern/password defined by the end user in the Android system settings.
IMPORTANT:-
The device keyguard activity must be set by calling
setKeyguardActivity(Activity,Class)before calling this API. Otherwise, aRuntimeExceptionwill be thrown. -
The SDK will verify if the device is secured with a PIN, pattern or password. Otherwise,
a
RuntimeExceptionwill be raised. In cases whereBIOMETRICSis used as theCHVerificationMethodmethod, MPA must only call this method after at least 1 failed biometric fingerprint verification or else, the SDK will raise aIllegalStateException. - This API does nothing on Android Q (and later). This is because on Android Q, the fallback mechanism is built into the biometric prompt and explicitly launching the device keyguard will launch the biometric prompt.
- Parameters:
title- Title to display on the device keyguard screen.description- Short message to be displayed on the device keyguard screen.
-
The device keyguard activity must be set by calling
-
onDelegatedAuthPerformed
void onDelegatedAuthPerformed(long timeStamp) Authentication is performed successfully by end user through MPA. Invokes SDK for further transaction steps.- Parameters:
timeStamp- The timestamp (in milliseconds) of the last successful end user authentication.- Since:
- 6.5.0
-
onDelegatedAuthCancelled
void onDelegatedAuthCancelled()Delegated CDCVM by user. Invokes SDK to deactivate current transaction. Displays the respective CDCVM error from OS to end user.- Since:
- 6.5.0
-
setCVMType
An API to set the CVM type for biometric fingerprint or device keyguard.- Parameters:
cvm-CVMType
-
startAuthentication(DeviceCVMVerifierInput)instead.