ATR
public final class ATR
A Smart Card’s answer-to-reset bytes. A Card’s ATR object can be obtained
by calling Card.atr
. 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.
See also
Version
1.0
Date
6 Nov 2017
-
Returns a copy of the bytes in this ATR.
Declaration
Swift
public var bytes: [UInt8] { get }
-
Returns a copy of the historical bytes in this ATR. If this ATR does not contain historical bytes, an array of length zero is returned.
Declaration
Swift
public var historicalBytes: [UInt8] { get }
-
Constructs an ATR from a byte array.
Declaration
Swift
public init(atr: [UInt8])
Parameters
atr
the byte array containing the answer-to-reset bytes