|
Java Smart Card I/O | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.smartcardio.ATR
public final class ATR
A Smart Card's answer-to-reset bytes. A Card's ATR object can be obtained by calling Card.getATR(). This class does not attempt to verify that the ATR encodes a semantically valid structure.
Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.
Card.getATR()
,
Serialized FormConstructor Summary | |
---|---|
ATR(byte[] atr)
Constructs an ATR from a byte array. |
Method Summary | |
---|---|
boolean |
equals(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. |
String |
toString()
Returns a string representation of this ATR. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ATR(byte[] atr)
atr
- the byte array containing the answer-to-reset bytes
NullPointerException
- if atr
is nullMethod Detail |
---|
public byte[] getBytes()
public byte[] getHistoricalBytes()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared for equality with this ATR
public int hashCode()
hashCode
in class Object
|
Java Smart Card I/O | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |