|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--opencard.core.terminal.CardTerminal
|
+--opencard.opt.terminal.AbstractLockableTerminal
|
+--com.ibm.opencard.terminal.pcsc10.Pcsc10LockableTerminal
Implementation of a lockable OpenCard CardTerminal for PCSC.
AbstractLockableTerminal| Fields inherited from class opencard.core.terminal.CardTerminal |
address,
name,
slots,
type |
| Constructor Summary | |
protected |
Pcsc10LockableTerminal(java.lang.String name,
java.lang.String type,
java.lang.String address)
Instantiate an Pcsc10Terminal. |
| Method Summary | |
protected void |
cardRemoved(int slotID)
Signal to observers that an inserted card was removed. |
void |
close()
Close the connection to the card terminal. |
opencard.core.terminal.CardID |
getCardID(int slot)
Return the CardID of the presently inserted card. |
opencard.core.terminal.CardID |
getCardID(int slot,
int timeout)
Deprecated. |
protected void |
internalCloseSlotChannel(opencard.core.terminal.SlotChannel sc)
The internal closeSlotChannel method. |
protected java.util.Properties |
internalFeatures(java.util.Properties features)
Query the card terminal about its features. |
protected void |
internalLock()
|
protected void |
internalLockSlot(int slotNr)
|
protected opencard.core.terminal.CardID |
internalReset(int slot,
int ms)
Implementation of CardTerminal.internalReset(). |
protected opencard.core.terminal.ResponseAPDU |
internalSendAPDU(int slot,
opencard.core.terminal.CommandAPDU capdu,
int ms)
The implementation of CardTerminal.internalSendAPDU(). |
protected void |
internalUnlock()
|
protected void |
internalUnlockSlot(int slotNr)
|
boolean |
isCardPresent(int slot)
Check whether there is a smart card present. |
protected void |
lockableOpenSlotChannel(int slotID)
The internal openSlotChannel method. |
void |
open()
Open the card terminal: We register with the CardTerminalRegistry as a Pollable card terminal. |
void |
poll()
This method is normally used by the CardTerminalRegistry to generate the OpenCard events if the Slot implementation does not support events itself. |
byte[] |
sendTerminalCommand(byte[] cmd)
Send control command to terminal. |
byte[] |
sendTerminalCommand(byte[] cmd,
java.lang.Object lockHandle)
Send control command to terminal. |
protected opencard.core.terminal.CardTerminalException |
translatePcscException(PcscException e)
translate the PcscException into CardTerminalException. |
| Methods inherited from class opencard.opt.terminal.AbstractLockableTerminal |
getSlotLockHandle,
getTerminalLockHandle,
internalOpenSlotChannel,
internalOpenSlotChannel,
lock,
lockSlot,
unlock,
unlockSlot |
| Methods inherited from class opencard.core.terminal.CardTerminal |
addSlots,
cardInserted,
closeSlotChannel,
enumerateSlots,
features,
getAddress,
getName,
getSlot,
getSlots,
getType,
isCardPresent,
isSlotChannelAvailable,
isSlotChannelAvailable,
openSlotChannel,
openSlotChannel,
openSlotChannel,
reset,
reset,
sendAPDU,
sendAPDU,
sendVerifiedCommandAPDU,
slots,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
protected Pcsc10LockableTerminal(java.lang.String name,
java.lang.String type,
java.lang.String address)
throws opencard.core.terminal.CardTerminalException
name - The user friendly name.type - The terminal type (here "PCSC")address - not used| Method Detail |
public void open()
throws opencard.core.terminal.CardTerminalException
public void close()
throws opencard.core.terminal.CardTerminalException
protected opencard.core.terminal.CardID internalReset(int slot,
int ms)
throws opencard.core.terminal.CardTerminalException
protected java.util.Properties internalFeatures(java.util.Properties features)
public boolean isCardPresent(int slot)
throws opencard.core.terminal.CardTerminalException
slot - Number of the slot to check (must be 0 for PCSC)
public opencard.core.terminal.CardID getCardID(int slot,
int timeout)
throws opencard.core.terminal.CardTerminalException
public opencard.core.terminal.CardID getCardID(int slot)
throws opencard.core.terminal.CardTerminalException
slot - slot number
protected void lockableOpenSlotChannel(int slotID)
throws opencard.core.terminal.CardTerminalException
slotID - The number of the slot for which a SlotChannel is requested.
protected void internalCloseSlotChannel(opencard.core.terminal.SlotChannel sc)
throws opencard.core.terminal.CardTerminalException
SlotChannel - The SlotChannel to close.
public byte[] sendTerminalCommand(byte[] cmd)
throws opencard.core.terminal.CardTerminalException
cmd - a byte array containing the command to be sent to the card terminalTerminalCommand
public byte[] sendTerminalCommand(byte[] cmd,
java.lang.Object lockHandle)
throws opencard.core.terminal.CardTerminalException
cmd - a byte array containing the command to be sent to the card terminalTerminalCommand
protected opencard.core.terminal.ResponseAPDU internalSendAPDU(int slot,
opencard.core.terminal.CommandAPDU capdu,
int ms)
throws opencard.core.terminal.CardTerminalException
slot - logical slot numbercapdu - C-APDU to send to the cardms - timeout in ms (not supported, ignored)protected void cardRemoved(int slotID)
slot - slot number
public void poll()
throws opencard.core.terminal.CardTerminalException
protected opencard.core.terminal.CardTerminalException translatePcscException(PcscException e)
protected void internalLock()
throws opencard.core.terminal.CardTerminalException
protected void internalUnlock()
throws opencard.core.terminal.CardTerminalException
protected void internalLockSlot(int slotNr)
throws opencard.core.terminal.CardTerminalException
protected void internalUnlockSlot(int slotNr)
throws opencard.core.terminal.CardTerminalException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||