Package com.gemalto.mfs.mwsdk.dcm
Interface DigitalizedCardDetails
-
public interface DigitalizedCardDetails
Interface that will be used to retrieve details about the card that has been provisioned. It is through this interface where the user of the SDK is able to retrieve the card information in the card profile. This interface also provides a method to retrieve, update, and save additional card data, which is custom to every card.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCVMResetTimeout()
Retrieves the credential reset timeout value of the cvm.int
getDualTapResetTimeout()
Retrieves the second tap reset timeout value.java.lang.String
getLastFourDigits()
Retrieves the string representation of the card's last four digits.java.lang.String
getLastFourDigitsOfDPAN()
Retrieves the last four digits of the digitalized PAN.java.lang.String
getPanExpiry()
Retrieves the string representation of the physical card's expiry.java.lang.String
getProductID()
Retrieves the product id.java.util.List<java.lang.String>
getQrAIDs()
Retrieve all the supported AIDsjava.lang.String
getScheme()
Retrieves the scheme.java.lang.String
getTokenizedCardID()
Retrieves the tokenized card id that identifies this instance of the DigitalizedCardDetails object.java.lang.String
getValue(java.lang.String key)
Generic method to retrieve the insensitive card profile data that corresponds to the given json key.boolean
isPaymentTypeSupported(PaymentType type)
Verifies if the digitalized card supports the given payment typeboolean
isVisaODACertificateExpired()
Verifies if the Visa ODA certificate is expiredboolean
isVisaODASupported()
Verifies if the digitalized card supports Visa ODAPaymentType[]
paymentTypeSupported()
Return all the supportedPaymentType
for this card.
-
-
-
Method Detail
-
isPaymentTypeSupported
boolean isPaymentTypeSupported(PaymentType type)
Verifies if the digitalized card supports the given payment type- Parameters:
type
-PaymentType
- Returns:
- boolean True, if the payment type is supported by the DigitalizedCard. Otherwise, false.
-
getTokenizedCardID
java.lang.String getTokenizedCardID()
Retrieves the tokenized card id that identifies this instance of the DigitalizedCardDetails object.- Returns:
- tokenized card id
-
getProductID
java.lang.String getProductID()
Retrieves the product id. The product ID is an ascii encoded string.- Returns:
- the product id, "UNKNOWN" if there is no product id associated with this DigitalizedCardDetails instance
-
getScheme
java.lang.String getScheme()
Retrieves the scheme.- Returns:
- the scheme as dictated by the CPS, null if there is no scheme associated with this DigitalizedCardDetails instance
-
getLastFourDigits
java.lang.String getLastFourDigits()
Retrieves the string representation of the card's last four digits.- Returns:
- the card's last four digits
-
getPanExpiry
java.lang.String getPanExpiry()
Retrieves the string representation of the physical card's expiry.- Returns:
- PAN expiry, null if there is no such information inside the profile of the physical card.
-
getLastFourDigitsOfDPAN
java.lang.String getLastFourDigitsOfDPAN()
Retrieves the last four digits of the digitalized PAN.- Returns:
- card's last four digits of DPAN
-
getCVMResetTimeout
int getCVMResetTimeout()
Retrieves the credential reset timeout value of the cvm. If the CVM verification method is BIO-FP or device Key guard and if customer has set value in wallet then value set in profile os override with constant set for wallet For wallet PIN use the value from the profile- Returns:
- timeout
-
getDualTapResetTimeout
int getDualTapResetTimeout()
Retrieves the second tap reset timeout value.- Returns:
- timeout
-
getValue
java.lang.String getValue(java.lang.String key)
Generic method to retrieve the insensitive card profile data that corresponds to the given json key. This is useful to acquire data specific for different schemes.- Parameters:
key
- the json key of the value to be retrieved. Refer toDigitalizedCardProfileKeys
for the list of known keys.- Returns:
- Whole value for the key retrieved from the card profile details.
-
paymentTypeSupported
PaymentType[] paymentTypeSupported()
Return all the supportedPaymentType
for this card.- Returns:
- an array containing
PaymentType
values, otherwise an empty array.
-
getQrAIDs
java.util.List<java.lang.String> getQrAIDs()
Retrieve all the supported AIDs- Returns:
- an array containing the String of AIDs, index 0 always represents main AID.
-
isVisaODASupported
boolean isVisaODASupported()
Verifies if the digitalized card supports Visa ODA- Returns:
- boolean true, if Visa ODA is supported by the DigitalizedCard. Otherwise, false.
-
isVisaODACertificateExpired
boolean isVisaODACertificateExpired()
Verifies if the Visa ODA certificate is expired- Returns:
- boolean true, if Visa ODA certificate is expired. Otherwise, false.
-
-