public final class ATR
extends java.lang.Object
implements java.io.Serializable
Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.
Card.getATR(),
Serialized Form| Constructor and Description |
|---|
ATR(byte[] atr)
Constructs an ATR from a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this ATR for equality.
|
byte[] |
getBytes()
Returns a copy of the bytes in this ATR.
|
byte[] |
getHistoricalBytes()
Returns a copy of the historical bytes in this ATR.
|
int |
hashCode()
Returns the hash code value for this ATR.
|
java.lang.String |
toString()
Returns a string representation of this ATR.
|
public ATR(byte[] atr)
atr - the byte array containing the answer-to-reset bytesjava.lang.NullPointerException - if atr is nullpublic byte[] getBytes()
public byte[] getHistoricalBytes()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to be compared for equality with this ATRpublic int hashCode()
hashCode in class java.lang.Object