|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simalliance.openmobileapi.Reader
public class Reader
Instances of this class represent Secure Element Readers connected to this device. These Readers can be physical devices or virtual devices. They can be removable or not. They can contain Secure Element that can or cannot be removed.
Method Summary | |
---|---|
void |
closeSessions()
Close all the sessions opened on this reader. |
java.lang.String |
getName()
Return the user-friendly name of this reader. |
java.lang.String[] |
getPcscReadersName()
|
SEService |
getSEService()
Return the Secure Element service this reader is bound to. |
boolean |
isSecureElementPresent()
Check if a Secure Element is present in this reader. |
Session |
openSession()
Connects to a secure element in this reader. |
void |
setNfcTag(android.nfc.Tag tag)
|
void |
setPcscReaderName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getName()
public Session openSession() throws java.io.IOException
java.io.IOException
- if something went wrong with the communicating to the
Secure Element or the reader.public boolean isSecureElementPresent()
true
if the SE is present, false
otherwise.public SEService getSEService()
public void closeSessions()
public java.lang.String[] getPcscReadersName() throws java.lang.Exception
java.lang.Exception
public void setPcscReaderName(java.lang.String name)
public void setNfcTag(android.nfc.Tag tag) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |