|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.smartcard.SmartCardReader
Represents a physical smart card reader slot in the terminal.
Constructor Summary | |
protected |
SmartCardReader()
This constructor is provided for the use of implementations and specifications which extend this specification. |
Method Summary | |
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. |
javax.microedition.apdu.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SmartCardReader()
Method Detail |
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 javax.microedition.apdu.APDUConnection openDefaultConnection() throws java.io.IOException, javax.microedition.io.ConnectionNotFoundException
java.io.IOException
- if a connection is already opened and/or cannot be established
javax.microedition.io.ConnectionNotFoundException
- if opening a connection is not admitted (i.e. for CA cards
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |