uicc.hci.framework
Class HCIDevice

java.lang.Object
  extended by uicc.hci.framework.HCIDevice

public final class HCIDevice
extends java.lang.Object

This class provides a factory to retrieve instances of HCIService subclasses.


Field Summary
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
 
Method Summary
static HCIService getHCIService(short serviceID)
          This method is used to retrieve instances of HCIService subclasses.
static byte getPowerMode()
          This method returns the current power mode of the UICC as defined in TS 102 622.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READER_SERVICE_ID

public static final short READER_SERVICE_ID
Identifies the service object for reader mode functionality

See Also:
Constant Field Values

CARD_EMULATION_SERVICE_ID

public static final short CARD_EMULATION_SERVICE_ID
Identifies the service object for card emulation mode functionality

See Also:
Constant Field Values

CONNECTIVITY_SERVICE_ID

public static final short CONNECTIVITY_SERVICE_ID
Identifies the service object for connectivity functionality

See Also:
Constant Field Values

LOW_POWER_MODE

public static final byte LOW_POWER_MODE
UICC is activated in low power mode

See Also:
Constant Field Values

FULL_POWER_MODE

public static final byte FULL_POWER_MODE
UICC is activated in full power mode

See Also:
Constant Field Values
Method Detail

getHCIService

public static HCIService getHCIService(short serviceID)
                                throws HCIException,
                                       javacard.framework.SystemException
This method is used to retrieve instances of HCIService subclasses.

Parameters:
serviceID - shall be one of the constants (*)_SERVICE_ID defined in this class.
Returns:
reference to the temporary JCRE entry point object of the HCIService
Throws:
HCIException - with reason (editor's note: TBD: has yet do be defined):
  • HCI_ACCESS_NOT_GRANTED if access to the indicated service is not permitted for the Applet (editors's note: sha will check how referencing is done in TS 102 241, further: list under which circumstances this exception shall be thrown.)
javacard.framework.SystemException - with the following reason code:
  • ILLEGAL_VALUE
    • if the serviceID does not match with the predefined values

getPowerMode

public static byte getPowerMode()
This method returns the current power mode of the UICC as defined in TS 102 622. Possible values are:

Returns:
the current power mode or -1 if the power mode can not be retrieved