|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Objectorg.opennfc.NfcManager
public final class NfcManager
The NFC Manager class is the single-instance class used to access the Open NFC library.
| Method Summary | |
|---|---|
boolean |
getBooleanProperty(String property)
Returns the value of a boolean property. |
CardEmulationRegistry |
getCardEmulationRegistry()
Returns the single instance of the card emulation registry. |
CardListenerRegistry |
getCardListenerRegistry()
Returns the single instance of the card listener registry. |
static NfcManager |
getInstance(Object object)
Returns the single instance of the NFC manager. |
int |
getIntegerProperty(String property)
Returns the value of an integer property. |
NfcController |
getNfcController()
Returns the single instance of NFC Controller. |
NfcTagManager |
getNfcTagManager()
Returns the single instance of NFC Tag Manager. |
P2PManager |
getP2PManager()
Returns the single instance of P2P Manager. |
String |
getProperty(String property)
Returns the string value of a property. |
SeSlot[] |
getSeSlots()
Returns the list of Secure Element Slots (including UICC). |
void |
setProperty(String property,
boolean value)
Sets the value of a boolean property. |
void |
setProperty(String property,
int value)
Sets the value of an integer property. |
void |
start()
Starts the NFC Manager. |
void |
stop()
Stops the NFC Manager. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NfcManager getInstance(Object object)
object - a blind object provided to the Security Manager
SecurityException - if a security issue is detected
public void start()
throws IllegalStateException,
NfcException
stop()
when the NFC objects are no longer used.
IllegalStateException - if the NFC Manager is already started.
NfcException - if an error occurred in the initialization of the NFC Manager.stop()
public void stop()
throws NfcException,
IllegalStateException
IllegalStateException - if the NFC Manager is not started.
NfcException - if an error occurred in the event thread.start()public String getProperty(String property)
property - the identifier of the property.
IllegalArgumentException - if the property is null.
IllegalArgumentException - if the property is not a string property.
SecurityException - if the calling application is not allowed to access this property.public boolean getBooleanProperty(String property)
property - the identifier of the property.
IllegalArgumentException - if the property is null.
SecurityException - if the calling application is not allowed to access this property.public int getIntegerProperty(String property)
property - the identifier of the property.
IllegalArgumentException - if the property is null.
NumberFormatException - if the property is not an integer property.
SecurityException - if the calling application is not allowed to access this property.
public void setProperty(String property,
boolean value)
property - the identifier of the property.value - the property value.
IllegalArgumentException - if the property is null.
IllegalArgumentException - if the property is not a boolean property.
IllegalArgumentException - if the property is read-only.
SecurityException - if the calling application is not allowed to access this property.
public void setProperty(String property,
int value)
property - the identifier of the property.value - the property value.
IllegalArgumentException - if the property is null.
IllegalArgumentException - if the property is not an integer property.
IllegalArgumentException - if the property is read-only.
SecurityException - if the calling application is not allowed to access this property.public NfcTagManager getNfcTagManager()
public SeSlot[] getSeSlots()
SecurityException - if the calling application is not allowed to access the Secure Element(s).
public P2PManager getP2PManager()
throws NfcException
NfcException - if the platform doesn't support P2P feature.
SecurityException - if the calling application is not allowed to use the Peer to Peer protocol.public CardListenerRegistry getCardListenerRegistry()
SecurityException - if the calling application is not allowed to listen to cards.public CardEmulationRegistry getCardEmulationRegistry()
SecurityException - if the calling application is not allowed to emulate cards.public NfcController getNfcController()
SecurityException - if the calling application is not allowed to access hardware.
|
Copyright © 2010-2011 Inside Secure |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||