public class ATR
extends java.lang.Object
The ATR data includes both the raw ATR bytes and the Historical Bytes, which provide additional details about the card's properties and characteristics.
Constructor and Description |
---|
ATR(byte[] atr,
byte[] histBytes)
Constructs an ATR object with the specified ATR data and Historical Bytes.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Retrieves all the ATR data.
|
byte[] |
getHistoricalBytes()
Retrieves the Historical Bytes from the ATR.
|
public ATR(byte[] atr, byte[] histBytes)
atr
- The raw ATR byte array.histBytes
- The Historical Bytes array.public byte[] getBytes()
public byte[] getHistoricalBytes()
According to ISO/IEC 7816-4, the structure and meaning of Historical Bytes are defined, with a variable length of up to 15 Bytes. EMV specifications further detail the structure of these bytes. However, not all cards necessarily return this data.
Refer to EMV 4.3 Book 1 for Application Independent ICC to Terminal Interface Requirements.