类的用途
javax.smartcardio.CardException
使用 CardException 的包
-
CardException 在 javax.smartcardio 中的用法
修饰符和类型方法描述abstract voidCard.beginExclusive()请求独占访问此卡。abstract voidCardChannel.close()关闭此 CardChannel。abstract Card建立与卡的连接。abstract voidCard.disconnect(boolean reset) 断开与这张卡的连接。abstract voidCard.endExclusive()释放之前使用beginExclusive建立的独占访问。abstract booleanCardTerminal.isCardPresent()返回此终端中是否存在卡。CardTerminals.list()返回所有可用终端的不可修改列表。abstract List<CardTerminal>CardTerminals.list(CardTerminals.State state) 返回与指定状态匹配的所有终端的不可修改列表。abstract CardChannelCard.openLogicalChannel()打开一个新的逻辑通道到卡并返回它。abstract intCardChannel.transmit(ByteBuffer command, ByteBuffer response) 传输命令 ByteBuffer 中存储的命令 APDU,并在响应 ByteBuffer 中接收响应 APDU。abstract ResponseAPDUCardChannel.transmit(CommandAPDU command) 将指定的命令 APDU 传输到智能卡并返回响应 APDU。abstract byte[]Card.transmitControlCommand(int controlCode, byte[] command) 向终端设备发送控制命令。abstract booleanCardTerminal.waitForCardAbsent(long timeout) 等待直到此终端中没有卡或超时到期。abstract booleanCardTerminal.waitForCardPresent(long timeout) 等待直到此终端中出现卡或超时到期。voidCardTerminals.waitForChange()等待在此对象的任何终端中插入或移除卡。abstract booleanCardTerminals.waitForChange(long timeout) 等待卡插入或移除此对象的任何终端或直到超时到期。