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