public class PrimaryAccountNumber extends BaseTrackData
| Constructor and Description |
|---|
PrimaryAccountNumber()
No primary account number of the bank card.
|
PrimaryAccountNumber(String rawAccountNumber)
Parses the primary account number of the bank card.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
exceedsMaximumLength()
Whether the track data exceeds the maximum length allowed.
|
String |
getAccountNumber()
Gets the primary account number of the bank card.
|
CardBrand |
getCardBrand()
Gets the the card brand.
|
String |
getIssuerIdentificationNumber()
The first six digits of the PAN are taken from the IIN, or Issuer
Identification Number, belonging to the issuing bank (IINs were
previously known as BIN — Bank Identification Numbers — so you may
see references to that terminology in some documents).
|
MajorIndustryIdentifier |
getMajorIndustryIdentifier()
The first digit of a credit card number is the Major Industry
Identifier (MII) (see ISO/IEC 7812), which represents the category
of entity which issued the card.
|
int |
hashCode() |
boolean |
hasPrimaryAccountNumber()
Checks whether the primary account number for the card is
available.
|
boolean |
isPassesLuhnCheck()
Checks whether the primary account number passes the Luhn check.
|
String |
toString() |
getRawTrackData, hasRawTrackDatapublic PrimaryAccountNumber()
public PrimaryAccountNumber(String rawAccountNumber)
rawAccountNumber - Raw primary account number from the magnetic track data.public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public boolean exceedsMaximumLength()
TrackDataTrackData.exceedsMaximumLength()public String getAccountNumber()
public CardBrand getCardBrand()
public String getIssuerIdentificationNumber()
public MajorIndustryIdentifier getMajorIndustryIdentifier()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean hasPrimaryAccountNumber()
public boolean isPassesLuhnCheck()
public String toString()
toString in class BaseTrackDataObject.toString()Copyright © 2014 Sualeh Fatehi. All rights reserved.