public final class ATR extends Objectimplements 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(Object
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.
|
String |
toString()
Returns a string representation of this ATR.
|
public ATR(byte[] atr)
atr - the byte array containing the answer-to-reset bytes
NullPointerException - if
atr is null
public byte[] getBytes()
public byte[] getHistoricalBytes()
public StringtoString()
public boolean equals(Objectobj)
equals in class
Object
obj - the object to be compared for equality with this ATR
Object.hashCode() ,
HashMap
public int hashCode()
hashCode in class
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)