|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.globalplatform.GPSystem
The GPSystem class exposes a subset of the behavior of the OPEN to the outside world. The OPEN implements and enforces a Card Issuer's security policy relating to these services. This OPEN class provides functionality at the same level as the JCRE, i.e. the "system" context with special privileges. This class is composed of static methods visible to all applets importing the globalplatform package.
Field Summary | |
static byte |
APPLICATION_INSTALLED
The current applet context is in the Life Cycle State of INSTALLED (0x03). |
static byte |
APPLICATION_SELECTABLE
The current applet context is in the Life Cycle State of SELECTABLE (0x07). |
static byte |
CARD_INITIALIZED
The card is in the Life Cycle State of INITIALIZED (0x07). |
static byte |
CARD_LOCKED
The card is in the Life Cycle State of CARD_LOCKED (0x7F). |
static byte |
CARD_OP_READY
The card is in the Life Cycle State of OP_READY (0x01). |
static byte |
CARD_SECURED
The card is in the Life Cycle State of SECURED (0x0F). |
static byte |
CARD_TERMINATED
The card is in the Life Cycle State of TERMINATED (0xFF). |
static byte |
CVM_GLOBAL_PIN
Indicates that the CVM interface required is a Global PIN (0x11). |
static byte |
SECURITY_DOMAIN_PERSONALIZED
The Security Domain is in the Life Cycle State of PERSONALIZED (0x0F). |
Constructor Summary | |
GPSystem()
|
Method Summary | |
static byte |
getCardContentState()
This method returns the Life Cycle State of the current applet context. |
static byte |
getCardState()
This method returns the Life Cycle State of the card. |
static CVM |
getCVM(byte bCVMIdentifier)
This method returns a handle to the CVM interface. |
static SecureChannel |
getSecureChannel()
This method returns a handle to the SecureChannel interface. |
static boolean |
lockCard()
This method locks the card. |
static boolean |
setATRHistBytes(byte[] baBuffer,
short sOffset,
byte bLength)
This method sets the historical bytes of the ATR (Answer To Reset) string. |
static boolean |
setCardContentState(byte bState)
This method sets the application specific Life Cycle State of the current applet context. |
static boolean |
terminateCard()
This method terminates the card. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte APPLICATION_INSTALLED
Note:
public static final byte APPLICATION_SELECTABLE
Note:
public static final byte SECURITY_DOMAIN_PERSONALIZED
public static final byte CARD_OP_READY
public static final byte CARD_INITIALIZED
public static final byte CARD_SECURED
public static final byte CARD_LOCKED
public static final byte CARD_TERMINATED
public static final byte CVM_GLOBAL_PIN
Constructor Detail |
public GPSystem()
Method Detail |
public static byte getCardContentState()
Notes:
Applet.install()
method.
APPLICATION_INSTALLED, APPLICATION_SELECTABLE, SECURITY_DOMAIN_PERSONALIZED
public static byte getCardState()
CARD_OP_READY, CARD_INITIALIZED, CARD_SECURED, CARD_LOCKED,
CARD_TERMINATED
public static CVM getCVM(byte bCVMIdentifier)
bCVMIdentifier
- identifies the required CVM interface.
CVM_GLOBAL_PIN
public static SecureChannel getSecureChannel()
Notes:
Applet.install()
method.
public static boolean lockCard()
Notes:
Applet.install()
method.
true
if card locked, false
otherwisepublic static boolean terminateCard()
Notes:
Applet.install()
method.
true
if card terminated, false
otherwise.public static boolean setATRHistBytes(byte[] baBuffer, short sOffset, byte bLength)
Notes:
Applet.install()
method.
baBuffer
- the source byte array containing the ATR historical bytes. Must be a global array.sOffset
- offset of the ATR historical bytes within source byte array.bLength
- the number of historical bytes.
true
if ATR bytes set, false
otherwise.public static boolean setCardContentState(byte bState)
Notes:
Applet.install()
method.
bState
- the application specific state.
true
if the operation is successful, false
otherwise.SECURITY_DOMAIN_PERSONALIZED
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |