public class Track1FormatB extends BaseBankCardTrackData
| Modifier and Type | Method and Description |
|---|---|
boolean |
exceedsMaximumLength()
Whether the track data exceeds the maximum length allowed.
|
static Track1FormatB |
from(String rawTrackData)
Parses magnetic track 1 format B data into a Track1FormatB object.
|
ExpirationDate |
getExpirationDate()
Gets the card expiration date.
|
String |
getFormatCode()
Gets the track 1 format code, usually "B".
|
Name |
getName()
Gets the cardholder's name.s
|
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 |
hasFormatCode()
Checks whether the format code is available.
|
boolean |
hasName()
Checks whether the cardholder's name 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 Track1FormatB 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 String getFormatCode()
public Name getName()
public PrimaryAccountNumber getPrimaryAccountNumber()
public ServiceCode getServiceCode()
public boolean hasExpirationDate()
public boolean hasFormatCode()
public boolean hasName()
public boolean hasPrimaryAccountNumber()
public boolean hasServiceCode()
Copyright © 2014 Sualeh Fatehi. All rights reserved.