Enum CHVerificationManager
- java.lang.Object
-
- java.lang.Enum<CHVerificationManager>
-
- com.gemalto.mfs.mwsdk.payment.chverification.CHVerificationManager
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CHVerificationManager>
public enum CHVerificationManager extends java.lang.Enum<CHVerificationManager>
A singleton factory class that acts as a manager of the card holder verification method. The idea is to get all the information needed after the first card enrollment to decide what is the most appropriate CVM to be used.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CHVerificationResult<java.lang.Object>
getCHVerifier()
An API to get the CHVerifier object.CHVerificationResult<CHVerificationMethod>
getCVMethod()
An API to determine theCHVerificationMethod
to be used by the MPA.CHVerificationMethod
getDefaultFCdCvm()
An API to get the default Flexible Client Device Cardholder Verification Method (F CD-CVM).boolean
isCHVerified()
This is an API for checking if the card holder has been previously verified.boolean
isFCdCvmSet()
An API to check whether the F CD-CVM has been already set before.boolean
isFCDCVMSupported()
An API to check if the SDK supports Flexible Client Device Cardholder Verification Method (F CD-CVM).static CHVerificationManager
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CHVerificationManager[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final CHVerificationManager INSTANCE
-
-
Method Detail
-
values
public static CHVerificationManager[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CHVerificationManager c : CHVerificationManager.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CHVerificationManager valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCVMethod
public CHVerificationResult<CHVerificationMethod> getCVMethod()
An API to determine theCHVerificationMethod
to be used by the MPA.- Returns:
instance
-
getCHVerifier
public CHVerificationResult<java.lang.Object> getCHVerifier()
An API to get the CHVerifier object.- Returns:
CHVerificationResult
-
isCHVerified
public boolean isCHVerified()
This is an API for checking if the card holder has been previously verified.- Returns:
- boolean - true if previously verified, false if not verified before
-
isFCDCVMSupported
public boolean isFCDCVMSupported()
An API to check if the SDK supports Flexible Client Device Cardholder Verification Method (F CD-CVM). SeeCHVerificationMethod
for the list of CD-CVM.- Returns:
- TRUE is supported. Otherwise, FALSE.
-
getDefaultFCdCvm
public CHVerificationMethod getDefaultFCdCvm()
An API to get the default Flexible Client Device Cardholder Verification Method (F CD-CVM). The value is set after setting up the CD-CVM (Seeand {@link DeviceCVMManager }
). SeeCHVerificationMethod
for the list of CD-CVM.- Returns:
CHVerificationMethod
-
isFCdCvmSet
public boolean isFCdCvmSet()
An API to check whether the F CD-CVM has been already set before.- Returns:
- TRUE if set. FALSE, otherwise.
-
-