【发布时间】:2020-08-24 13:30:52
【问题描述】:
引自 GP2.1.1 API 文档:
setATRHistBytes
public static boolean setATRHistBytes(byte[] baBuffer,
short sOffset,
byte bLength)
This method sets the historical bytes of the ATR (Answer To Reset) string. The sequence of bytes will be visible on a subsequent power-up or reset.
Notes:
This method shall not be invoked from the Applet.install() method.
The OPEN locates the entry of the current applet context in the Open Platform Registry and verifies that the application has the "default selected" privilege.
The OPEN is responsible for updating the length of historical bytes in Format Character T0 of the ATR.
Parameters:
baBuffer - the source byte array containing the ATR historical bytes. Must be a global array.
sOffset - offset of the ATR historical bytes within source byte array.
bLength - the number of historical bytes.
Returns:
true if ATR bytes set, false otherwise.
问题 1:GP 是否强制默认选择小程序以更改 ATR Hist 字节?
问题 2:GP 是否仅更改冷重置 ATR?还是暖重置 ATR 也发生了变化?
问题 3:我如何才能收到我的卡的热重置 ATR?有什么命令吗?它是特定于读者的吗?
【问题讨论】:
标签: smartcard javacard globalplatform