|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cryptware.jscapi.Reader
public class Reader
Implements a smart card reader
A PC/SC smart card reader is uniquely identified by a name
Field Summary | |
---|---|
static int |
INFINITE
Infinite timeout in WaitForSmartCard events |
Method Summary | |
---|---|
void |
addReaderListener(ReaderListener readerListener)
|
SmartCard |
connect()
Connects to the smart card using default shared mode and default protocol |
SmartCard |
connect(java.lang.String desiredProtocol)
Connect to the smart card using the given protocol |
java.lang.String |
getName()
|
SmartCard |
getSmartCard()
|
boolean |
isEnableEvents()
|
boolean |
isSmartCardPresent()
Check's the presence of the smart card in the reader |
void |
removeReaderListener(ReaderListener readerListener)
|
void |
setEnableEvents(boolean enable)
Enables/Disables smart card insertion/removal events |
boolean |
WaitForSmartCardInserted()
Stops execution and waits for smart card insertion |
boolean |
WaitForSmartCardInserted(int timeout)
Stops execution and waits for smart card insertion |
boolean |
WaitForSmartCardRemoved()
Stops execution and waits for smart card removal |
boolean |
WaitForSmartCardRemoved(int timeout)
Stops execution and waits for smart card removal |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INFINITE
Method Detail |
---|
public java.lang.String getName()
public void addReaderListener(ReaderListener readerListener)
readerListener
- public void removeReaderListener(ReaderListener readerListener)
readerListener
- public boolean isSmartCardPresent()
public SmartCard connect()
public SmartCard connect(java.lang.String desiredProtocol)
desiredProtocol
-
public SmartCard getSmartCard()
public boolean WaitForSmartCardInserted()
public boolean WaitForSmartCardInserted(int timeout)
timeout
-
public boolean WaitForSmartCardRemoved()
public boolean WaitForSmartCardRemoved(int timeout)
timeout
-
public void setEnableEvents(boolean enable)
enable
- public boolean isEnableEvents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |