Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.
Card#getATR
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private transient int | |
| private static final long | |
| private transient int |
| Access | Constructor and Description |
|---|---|
| public | ATR(byte[]
the byte array containing the answer-to-reset bytes atr)Constructs an ATR from a byte array. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified object is equal to this ATRthe object to be compared for equality with this ATR obj)Overrides java. Compares the specified object with this ATR for equality. |
| public byte[] | |
| public byte[] | Returns: a copy of the historical bytes in this ATR.Returns a copy of the historical bytes in this ATR. |
| public int | Returns: the hash code value for this ATR.Overrides java. Returns the hash code value for this ATR. |
| private void | |
| private void | |
| public String | Returns: a String representation of this ATR.Overrides java. Returns a string representation of this ATR. |
| atr | back to summary |
|---|---|
| private byte[] atr | |
| nHistorical | back to summary |
|---|---|
| private transient int nHistorical | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| startHistorical | back to summary |
|---|---|
| private transient int startHistorical | |
| ATR | back to summary |
|---|---|
| public ATR(byte[] atr) Constructs an ATR from a byte array.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares the specified object with this ATR for equality. Returns true if the given object is also an ATR and its bytes are identical to the bytes in this ATR.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Returns a copy of the bytes in this ATR.
| |
| getHistoricalBytes | back to summary |
|---|---|
| public byte[] getHistoricalBytes() Returns a copy of the historical bytes in this ATR. If this ATR does not contain historical bytes, an array of length zero is returned.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code value for this ATR.
| |
| parse | back to summary |
|---|---|
| private void parse() | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this ATR.
| |