public class Card
extends java.lang.Object
CardTerminal.connect()
.CardTerminal
Constructor and Description |
---|
Card(CardTerminal cardTerminalUsed)
Constructs a new Card object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bulkOUT(byte[] data)
Wrapper for USB bulkOUT request
|
void |
disconnect(java.lang.Boolean reset)
Disconnects the connection with this card.
|
ATR |
getATR()
Returns the ATR of this card.
|
CardChannel |
getBasicChannel()
Returns the CardChannel for the basic logical channel.
|
protected int |
getSequenceNumber()
Get current sequence number
|
protected int |
getSlotNumber()
Get linked slot
|
protected void |
waitAPDU()
Prepare to wait for an APDU transaction (ie a response from the card)
|
protected ResponseAPDU |
waitRAPDU()
Wait forever for an APDU answer
|
public Card(CardTerminal cardTerminalUsed)
This constructor is called by subclasses only. Application should call the CardTerminal.connect() method to obtain a Card object.
cardTerminalUsed
- store caller mContextpublic ATR getATR()
public void disconnect(java.lang.Boolean reset)
reset
- whether to reset the card after disconnecting.
[currently not used]public CardChannel getBasicChannel()
protected void waitAPDU()
protected ResponseAPDU waitRAPDU()
protected void bulkOUT(byte[] data)
data
- data to sendprotected int getSlotNumber()
protected int getSequenceNumber()