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.
Constructor | Description |
---|---|
ATR |
Constructs an ATR from a byte array. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals |
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)
public int hashCode()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.smartcardio/javax/smartcardio/ATR.html