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 reasons, CardDetails uses
byte[]
as a variable type which can be wiped (refer towipe()
).Use the following example to convert the variable from
byte[]
to String if necessary: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()
Gets the name of the cardholder.byte[]
getCvv()
Gets the CVV number of the card.byte[]
getExpiryDate()
Gets the expiry date of the card in MMYY format.byte[]
getPan()
Gets the full PAN number of the card.void
wipe()
Wipes the sensitive data of the object.
-
-
-
Method Detail
-
getPan
@NonNull public byte[] getPan()
Gets the full PAN number of the card.
-
getExpiryDate
@NonNull public byte[] getExpiryDate()
Gets the expiry date of the card in MMYY format.
-
getCvv
@NonNull public byte[] getCvv()
Gets the CVV number of the card.
-
getCardHolderName
@Nullable public byte[] getCardHolderName()
Gets the name of the cardholder.
-
wipe
public void wipe()
Wipes the sensitive data of the object.
-
-