public class CardChannel
extends java.lang.Object
Card
,
CommandAPDU
,
ResponseAPDU
Modifier | Constructor and Description |
---|---|
protected |
CardChannel(Card cardUsed)
Constructs a new CardChannel object.
|
Modifier and Type | Method and Description |
---|---|
CardChannel |
getBasicChannel()
Simply return a reference to this object
|
ResponseAPDU |
transmit(CommandAPDU command)
Transmits the specified command APDU to the Smart Card and returns the
response APDU.
|
protected CardChannel(Card cardUsed)
This constructor is called by subclasses only. Application should call the Card.getBasicChannel() method to obtain a CardChannel object.
cardUsed
- the Card on which we want to obtain a Cardchannelpublic CardChannel getBasicChannel()
public ResponseAPDU transmit(CommandAPDU command)
The CLA byte of the command APDU is automatically adjusted to match the channel number of this CardChannel.
The ResponseAPDU returned by this method is the result after this processing has been performed.
command
- the command APDU