CardTerminal.connect() .
CardTerminal
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract void | disconnect(boolean
whether to reset the card after disconnecting. reset)Disconnects the connection with this card. |
| public abstract void | |
| public abstract ATR | |
| public abstract CardChannel | Returns: the CardChannel for the basic logical channelReturns the CardChannel for the basic logical channel. |
| public abstract String | Returns: the protocol in use for this card, for example "T=0" or "T=1"Returns the protocol in use for this card. |
| public abstract CardChannel | Returns: the logical channel which has been openedOpens a new logical channel to the card and returns it. |
| public abstract byte[] | Returns: the response from the terminal devicethe control code of the command controlCode, byte[] the command data command)Transmits a control command to the terminal device. |
| Card | back to summary |
|---|---|
| protected Card() Constructs a new Card object. This constructor is called by subclasses only. Application should call the CardTerminal.connect() method to obtain a Card object. | |
| beginExclusive | back to summary |
|---|---|
| public abstract void beginExclusive() throws CardException Requests exclusive access to this card. Once a thread has invoked Applications have to ensure that exclusive access is correctly
released. This can be achieved by executing
the
| |
| disconnect | back to summary |
|---|---|
| public abstract void disconnect(boolean reset) throws CardException Disconnects the connection with this card. After this method returns, calling methods on this object or in CardChannels associated with this object that require interaction with the card will raise an IllegalStateException.
| |
| endExclusive | back to summary |
|---|---|
| public abstract void endExclusive() throws CardException Releases the exclusive access previously established using
| |
| getATR | back to summary |
|---|---|
| public abstract ATR getATR() Returns the ATR of this card.
| |
| getBasicChannel | back to summary |
|---|---|
| public abstract CardChannel getBasicChannel() Returns the CardChannel for the basic logical channel. The basic logical channel has a channel number of 0.
| |
| getProtocol | back to summary |
|---|---|
| public abstract String getProtocol() Returns the protocol in use for this card.
| |
| openLogicalChannel | back to summary |
|---|---|
| public abstract CardChannel openLogicalChannel() throws CardException Opens a new logical channel to the card and returns it. The channel is
opened by issuing a
| |
| transmitControlCommand | back to summary |
|---|---|
| public abstract byte[] transmitControlCommand(int controlCode, byte[] command) throws CardException Transmits a control command to the terminal device. This can be used to, for example, control terminal functions like a built-in PIN pad or biometrics.
| |