Package com.thalesgroup.gemalto.d1.card
Class CardDetails
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.CardDetails
-
public final class CardDetails extends Object
The Card details for D1 Core.For security reason, CardDetails use
byte[]
as variables type which can be wiped (referwipe()
).Please use following example to covert the variable from
byte[]
to String if need:String pan = new String(cardDetails.getPan(), StandardCharsets.UTF_8);
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CardDetails(byte[] pan, byte[] expiryDate, byte[] cvv, byte[] cardHolderName)
Public Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getCardHolderName()
Get card holder name of the cardbyte[]
getCvv()
Get cvv number of the cardbyte[]
getExpiryDate()
Get expiry date of the card, in MMYY formatbyte[]
getPan()
Get full pan number of the cardvoid
wipe()
Wipe the sensitive data of the object
-
-
-
Method Detail
-
getPan
@NonNull public byte[] getPan()
Get full pan number of the card
-
getExpiryDate
@NonNull public byte[] getExpiryDate()
Get expiry date of the card, in MMYY format
-
getCvv
@NonNull public byte[] getCvv()
Get cvv number of the card
-
getCardHolderName
@NonNull public byte[] getCardHolderName()
Get card holder name of the card
-
wipe
public void wipe()
Wipe the sensitive data of the object
-
-