public final class ATR extends Object implements Serializable
Instances of this class are immutable. Where data is passed in or out via byte arrays, defensive cloning is performed.
Card.getATR()
,
Serialized FormConstructor and Description |
---|
ATR(byte[] atr)
Constructs an ATR from a byte array.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ATR(byte[] atr)
atr
- the byte array containing the answer-to-reset bytesNullPointerException
- if atr
is nullpublic byte[] getBytes()
public byte[] getHistoricalBytes()
public String toString()
public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared for equality with this ATRObject.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.