public interface ICard
Interface to a smartcard object which is obtained from a card reader object of a certain card reader provider
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(boolean reset)
Disconnects the connection with this card.
|
Atr |
getATR()
Returns the Atr of this card
|
CardProtocol |
getProtocol()
Returns the transport protocol used.
|
ICardChannel |
openBasicChannel()
Open the basic communication channel to the card.
- Note: the basic channel assumes the channel number 0.
|
ICardChannel |
openLogicalChannel()
Open a new logical channel.
|
Atr getATR()
Returns the Atr of this card
CardProtocol getProtocol()
Returns the transport protocol used.
ICardChannel openBasicChannel() throws CardException
Open the basic communication channel to the card. - Note: the basic channel assumes the channel number 0.
java.lang.SecurityException - if a SecurityManager exists and the caller does not have the required permissionjava.lang.IllegalStateException - if this card object has been disposed of via the disconnect() methodCardException - if there is an communication error with underlying layersICardChannel openLogicalChannel() throws CardException
Open a new logical channel. The channel is opened issuing a <code>MANAGE CHANNEL</code> command that should use the format [0x0, 0x70, 0x0, 0x0, 0x1].
java.lang.SecurityException - if a SecurityManager exists and the caller does not have the required permissionjava.lang.IllegalStateException - if this card object has been disposed of via the disconnect() methodCardException - is a new logical channel could not be openedvoid 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.
reset - whether to reset the card after disconnecting.java.lang.SecurityException - if a SecurityManager exists and the caller does not have the required permissionCardException - if the card operation failed