public final class CardDetails extends Object
For security reason, CardDetails use byte[]
as variables type which can be wiped (refer wipe()
).
Please use following example to covert the variable from byte[]
to String if need:
String pan = new String(cardDetails.getPan(), StandardCharsets.UTF_8);
Constructor and Description |
---|
CardDetails(byte[] pan,
byte[] expiryDate,
byte[] cvv,
byte[] cardHolderName)
(Internal use only)
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getCardHolderName()
Get card holder name of the card
|
byte[] |
getCvv()
Get cvv number of the card
|
byte[] |
getExpiryDate()
Get expiry date of the card, in MMYY format
|
byte[] |
getPan()
Get full pan number of the card
|
void |
wipe()
Wipe the sensitive data of the object
|
public CardDetails(@NonNull byte[] pan, @NonNull byte[] expiryDate, @NonNull byte[] cvv, @NonNull byte[] cardHolderName)
Constructing new object
pan
- The PAN valueexpiryDate
- The expiry datecvv
- The CVV valuecardHolderName
- The card holder name@NonNull public byte[] getPan()
@NonNull public byte[] getExpiryDate()
@NonNull public byte[] getCvv()
@NonNull public byte[] getCardHolderName()
public void wipe()