Package com.thalesgroup.gemalto.d1.d1pay
Class AuthenticationParameter
java.lang.Object
com.thalesgroup.gemalto.d1.d1pay.AuthenticationParameter
Parameter set required for user authentication (during a payment transaction).
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationParameter(Activity activity, String title, String subTitle, String description, String negativeBtnText, DeviceAuthenticationCallback callback) Constructs the authentication params object. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the host activity of the payment transaction.Retrieves the authentication callback.Retrieves the custom description of the authentication screen.Retrieves the custom description of the negative button on the authentication screen.Retrieves the custom sub-title of the authentication screen.getTitle()Retrieves the custom title of the authentication screen.Retrieves the expected verification method (if there is any).voidSets the expected verification method for this authentication.
-
Constructor Details
-
AuthenticationParameter
public AuthenticationParameter(@NonNull Activity activity, @NonNull String title, @NonNull String subTitle, @NonNull String description, @NonNull String negativeBtnText, @NonNull DeviceAuthenticationCallback callback) Constructs the authentication params object.- Parameters:
activity- The host activity where the authentication occurs.title- The title to display on the system authentication screen.subTitle- The sub-title to display on the system authentication screen.description- The description to display on the system authentication screen.negativeBtnText- The negative button to show on system authentication screen.callback- The callback to inform the user about the authentication status.
-
-
Method Details
-
getActivity
Retrieves the host activity of the payment transaction.- Returns:
- The payment activity.
-
getCallback
Retrieves the authentication callback.- Returns:
- The authentication callback.
-
getTitle
Retrieves the custom title of the authentication screen.- Returns:
- The custom title of the authentication screen.
-
getSubTitle
Retrieves the custom sub-title of the authentication screen.- Returns:
- The custom sub-title of the authentication screen.
-
getDescription
Retrieves the custom description of the authentication screen.- Returns:
- The custom description of the authentication screen.
-
getNegativeButtonText
Retrieves the custom description of the negative button on the authentication screen.- Returns:
- The custom description of the negative button.
-
setVerificationMethod
Sets the expected verification method for this authentication.By default, the verification method is decided internally by D1 Pay. This API provides an option for the mobile app to fallback to other authentication method. For example, fallback to
VerificationMethod.DEVICE_KEYGUARDifVerificationMethod.BIOMETRICSis not working.- Parameters:
method- The expected verification method.
-
getVerificationMethod
Retrieves the expected verification method (if there is any).- Returns:
- The verification method.
-