Uses of Class
javax.smartcardio.CardException
| Package | Description |
|---|---|
| javax.smartcardio |
Java™ Smart Card I/O API.
|
-
Uses of CardException in javax.smartcardio
Subclasses of CardException in javax.smartcardio Modifier and Type Class Description classCardNotPresentExceptionException thrown when an application tries to establish a connection with a terminal that has no card present.Methods in javax.smartcardio that throw CardException Modifier and Type Method Description abstract voidCard. beginExclusive()Requests exclusive access to this card.abstract voidCardChannel. close()Closes this CardChannel.abstract CardCardTerminal. connect(String protocol)Establishes a connection to the card.abstract voidCard. disconnect(boolean reset)Disconnects the connection with this card.abstract voidCard. endExclusive()Releases the exclusive access previously established usingbeginExclusive.abstract booleanCardTerminal. isCardPresent()Returns whether a card is present in this terminal.List<CardTerminal>CardTerminals. list()Returns an unmodifiable list of all available terminals.abstract List<CardTerminal>CardTerminals. list(CardTerminals.State state)Returns an unmodifiable list of all terminals matching the specified state.abstract CardChannelCard. openLogicalChannel()Opens a new logical channel to the card and returns it.abstract intCardChannel. transmit(ByteBuffer command, ByteBuffer response)Transmits the command APDU stored in the command ByteBuffer and receives the response APDU in the response ByteBuffer.abstract ResponseAPDUCardChannel. transmit(CommandAPDU command)Transmits the specified command APDU to the Smart Card and returns the response APDU.abstract byte[]Card. transmitControlCommand(int controlCode, byte[] command)Transmits a control command to the terminal device.abstract booleanCardTerminal. waitForCardAbsent(long timeout)Waits until a card is absent in this terminal or the timeout expires.abstract booleanCardTerminal. waitForCardPresent(long timeout)Waits until a card is present in this terminal or the timeout expires.voidCardTerminals. waitForChange()Waits for card insertion or removal in any of the terminals of this object.abstract booleanCardTerminals. waitForChange(long timeout)Waits for card insertion or removal in any of the terminals of this object or until the timeout expires.