Serializable
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 | Description |
---|---|
ATR(byte[] atr) |
Constructs an ATR from a byte array.
|
Modifier and Type | Method | 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)
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b149-1