public class SmartCardReader extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SmartCardReader()
This constructor is provided for the use of implementations and specifications
which extend this specification.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSmartCardReaderListener(SmartCardReaderListener listener)
Allows the specified listener to received notifications about changes in the
status of the smart card reader.
|
int |
getSlotId()
Each single reader is identified on the terminal with an increasing identifier.
|
int |
getStatus()
Retrieves current status of the smart card reader.
|
boolean |
isSmartCardInserted()
Allows applications to query if a smart card is inserted in the reader.
|
APDUConnection |
openDefaultConnection()
Open connection without selecting an application, and managing channels
|
void |
removeSmartCardReaderListener(SmartCardReaderListener listener)
Removes specified listener: the notifications about changes in the status of the
smart card reader will no longer be forwarded to the given listener.
|
protected SmartCardReader()
public int getSlotId()
public int getStatus()
public boolean isSmartCardInserted()
public void addSmartCardReaderListener(SmartCardReaderListener listener)
listener - the SmartCardReaderListener that will receive the notificationspublic void removeSmartCardReaderListener(SmartCardReaderListener listener)
listener - the SmartCardReaderListener that was receiving the notifications.public APDUConnection openDefaultConnection() throws IOException, ConnectionNotFoundException
IOException - if a connection is already opened and/or cannot be establishedConnectionNotFoundException - if opening a connection is not admitted (i.e. for CA cardsCopyright © 2012 code4tv.com. All Rights Reserved.