Package com.thalesgroup.gemalto.d1.card
Class CardMetadata
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.CardMetadata
-
public final class CardMetadata extends Object
Card Metadata contains the basic information on Card- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CardMetadata(Scheme scheme, String last4Pan, String expiryDate, State state)Public Constructor for CardMetadata object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAssetList(D1Task.Callback<List<CardAsset>> callback)To get card assets belong to this card.StringgetExpiryDate()Gets the expiry date of the card in MMYY format.StringgetLast4Pan()Get the last 4 digits of the PAN.SchemegetScheme()Gets the card scheme.StategetState()Gets the state of the card.voidsetInternalCardMetaData(com.thalesgroup.gemalto.d1.core.module.card.D1CCardMetadata d1CCardMetadata)This method is used for internal purpose only.
-
-
-
Method Detail
-
getExpiryDate
@NonNull public String getExpiryDate()
Gets the expiry date of the card in MMYY format.
-
setInternalCardMetaData
public void setInternalCardMetaData(@NonNull com.thalesgroup.gemalto.d1.core.module.card.D1CCardMetadata d1CCardMetadata)
This method is used for internal purpose only.
-
getAssetList
public void getAssetList(D1Task.Callback<List<CardAsset>> callback)
To get card assets belong to this card. The Card asset contains resources such as an image. For images in PNG format, the list may contain several resolutions of the same asset.NOTE:
If you are migrating from SDK version 1.x and 2.x, the previous method CardMetadata.getAssetList has been updated to this asynchronous method to optimize the performance.- Parameters:
callback- The callback is invoked when the operation is completed. IfD1Task.Callback.onSuccess(Object)is returned, it returns assets list for respective card and always non-null.
Possible errors:
D1Exception.ErrorCode.ERROR_CORE Which can be due to storage (unlikely) or network failure
D1Exception.ErrorCode.ERROR_NOT_LOGGED_IND1Exception.ErrorCode.ERROR_NOT_AUTHORIZEDD1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFE
-
-