|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.smartcard.SmartCardReader
public class SmartCardReader
Represents a physical smart card reader slot in the terminal.
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 |
openRawConnection()
Opens a raw APDU connection without selecting an application or 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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 openRawConnection() throws java.io.IOException, javax.microedition.io.ConnectionNotFoundException
java.lang.SecurityException
- if the application does not have APDUPermission
javax.microedition.io.ConnectionNotFoundException
- if either the smartcard is not
inserted or if opening a connection is not permitted (e.g. for CA cards)
java.io.IOException
- if an APDU connection is already open or if any
other I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |