public final class HCIDevice
extends java.lang.Object
HCIService.| Modifier and Type | Field and Description |
|---|---|
static short |
CARD_EMULATION_SERVICE_ID
Identifies the service object for card emulation mode functionality
|
static short |
CONNECTIVITY_SERVICE_ID
Identifies the service object for connectivity functionality
|
static byte |
FULL_POWER_MODE
UICC is activated in full power mode
|
static byte |
LOW_POWER_MODE
UICC is activated in low power mode
|
static short |
READER_SERVICE_ID
Identifies the service object for reader mode functionality
|
| Modifier and Type | Method and Description |
|---|---|
static HCIService |
getHCIService(short serviceID)
This method is used to retrieve an instances that implement one of
HCIService
subinterfaces defined in this specification. |
static byte |
getPowerMode()
This method returns the current power mode of the UICC as defined in TS 102 613.
|
static byte |
isHCIServiceAvailable(short serviceID)
This method is used to retrieve information about the availability of a HCIService
more related to user interface
If the Applet instance invoking this method passes
CARD_EMULATION_SERVICE_ID as
parameter and the the Communication Interface Access Configuration of this Applet instance does not
allow "Proximity based communication" according to clause 5 of GlobaPlatform Card Specification Amendment [8],
a, the return value shall indicate "access not allowed for Applet". |
public static final short READER_SERVICE_ID
public static final short CARD_EMULATION_SERVICE_ID
public static final short CONNECTIVITY_SERVICE_ID
public static final byte LOW_POWER_MODE
public static final byte FULL_POWER_MODE
public static HCIService getHCIService(short serviceID) throws HCIException, javacard.framework.SystemException
HCIService
subinterfaces defined in this specification.
This method returns null if the Applet.register() method has not yet
been invoked.
If the Applet instance invoking this method passes CARD_EMULATION_SERVICE_ID as
parameter, and the the Communication Interface Access Configuration of this Applet instance does not
allow "Proximity based communication" according to clause 5 of GlobaPlatform Card Specification Amendment [8],
a HCIExceptions with reason code HCI_ACCESS_NOT_GRANTED shall be thrown.
If no "Parameters for contactless applications" as defined in ETSI TS 102 226 [7] have been assigned to the
Applet instance invoking this method and passing READER_SERVICE_ID as parameter, a
HCIException with reason code HCI_ACCES_NOT_GRANTED shall be thrown.
serviceID - shall be one of the constants (*)_SERVICE_ID defined
in this class.HCIService or
null if not yet registered.HCIException - with reason:
javacard.framework.SystemException - with the following reason code: ILLEGAL_VALUE if the serviceID does not match with the predefined valuespublic static byte getPowerMode()
public static byte isHCIServiceAvailable(short serviceID)
If the Applet instance invoking this method passes CARD_EMULATION_SERVICE_ID as
parameter and the the Communication Interface Access Configuration of this Applet instance does not
allow "Proximity based communication" according to clause 5 of GlobaPlatform Card Specification Amendment [8],
a, the return value shall indicate "access not allowed for Applet".
If no "Parameters for contactless applications" as defined in ETSI TS 102 226 [7] have been assigned to the
Applet instance invoking this method and passing READER_SERVICE_ID as parameter the return value
shall indicate "access not allowed for Applet".
serviceID - shall be one of the constants (*)_SERVICE_ID defined in this class