|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.io.nfc.se.SecureElementManager
public class SecureElementManager
Provides access to SecureElement objects. A BlackBerry® device
can have both an embedded secure element and a SIM-based secure element.
| Method Summary | ||
|---|---|---|
|
static SecureElementManager |
getInstance()
Retrieves the system instance of the SecureElementManager. |
|
SecureElement |
getSecureElement(int seType)
Retrieves a specific type of secure element: either embedded or SIM-based. |
|
SecureElement[] |
getSecureElements()
Retrieves the list of secure elements available on the BlackBerry device. |
|
boolean |
isCardEmulationEnabledWhenInactive()
Indicates whether Secure Element card emulation is enabled when the device is inactive (backlight is off, device is locked or in standby mode). |
|
boolean |
isCardEmulationEnabledWhenPowerOff()
Indicates whether Secure Element card emulation is enabled when the device is powered off, or the battery is dead or removed. |
|
void |
setCardEmulationEnabledWhenInactive(boolean enabled)
Sets whether card emulation should be enabled when the device is inactive (backlight is off, device is locked or in standby mode). |
|
void |
setCardEmulationEnabledWhenPowerOff(boolean enabled)
Sets whether card emulation should be enabled when the device is powered off, or the battery is dead or removed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SecureElementManager getInstance()
SecureElementManager.
SecureElementManager.
public SecureElement[] getSecureElements()
throws NFCException
SecureElement objects available on the device,
or null if none are available.
NFCException - If the supported secure elements cannot be determined.
public SecureElement getSecureElement(int seType)
throws NFCException
seType - Type of the secure element to retrieve. Valid values are
SecureElement.SIM and SecureElement.EMBEDDED.
SecureElement. Returns
null if no secure element of the type specified is present.
NFCException - If there was a problem determining support for the requested
SecureElement.
public boolean isCardEmulationEnabledWhenInactive()
throws NFCException
true if card emulation is available when the device is
inactive, otherwise false.
NFCException - If the setting cannot be determined.
public void setCardEmulationEnabledWhenInactive(boolean enabled)
throws NFCException
enabled - true if card emulation should be possible in
this state, otherwise false.
NFCException - If this setting cannot be updated.
public boolean isCardEmulationEnabledWhenPowerOff()
throws NFCException
true if card emulation is available when the device
is powered off, or the battery is dead or removed.
NFCException - If the setting cannot be determined.
public void setCardEmulationEnabledWhenPowerOff(boolean enabled)
throws NFCException
enabled - true if card emulation should be possible in
this state, otherwise false.
NFCException - If this setting cannot be updated
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal