public class Track2 extends BaseBankCardTrackData
| Modifier and Type | Method and Description |
|---|---|
boolean |
exceedsMaximumLength()
Whether the track data exceeds the maximum length allowed.
|
static Track2 |
from(String rawTrackData)
Parses magnetic track 2 data into a Track2 object.
|
ExpirationDate |
getExpirationDate()
Gets the primary account number for the card.
|
PrimaryAccountNumber |
getPrimaryAccountNumber()
Gets the primary account number for the card.
|
ServiceCode |
getServiceCode()
Gets the card service code.
|
boolean |
hasExpirationDate()
Checks whether the card expiration date is available.
|
boolean |
hasPrimaryAccountNumber()
Checks whether the primary account number for the card is
available.
|
boolean |
hasServiceCode()
Checks whether the card service code is available.
|
getDiscretionaryData, hasDiscretionaryDatagetRawTrackData, hasRawTrackData, toStringpublic static Track2 from(String rawTrackData)
rawTrackData - Raw track data as a string. Can include newlines, and other
tracks as well.public boolean exceedsMaximumLength()
TrackDataTrackData.exceedsMaximumLength()public ExpirationDate getExpirationDate()
public PrimaryAccountNumber getPrimaryAccountNumber()
public ServiceCode getServiceCode()
public boolean hasExpirationDate()
public boolean hasPrimaryAccountNumber()
public boolean hasServiceCode()
Copyright © 2014 Sualeh Fatehi. All rights reserved.