|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This defines the interface of a privileged system class that represents an Application Provider on a card. The class implementing this interface must be declared a Shareable Interface Object (see the JCRE document in Java Card™ 2.1). This class offers cryptographic services, key management services, runtime messaging support, and secure loading services to applets from the same Application Provider. Prior to using this interface, an application is required to obtain a handle to it’s associated Security Domain by invoking the OPSystem.getSecurityDomain() method.
Method Summary | |
void |
closeSecureChannel(byte channel)
This method is used to close the Secure Channel that was previously opened with the openSecureChannel() method specifically to erase any secure information relating to the Secure Channel. |
boolean |
decryptVerifyKey(byte channel,
javacard.framework.APDU apdu,
short offset)
This method is used to decrypt and verify a key received by the application within a Secure Channel. |
byte |
openSecureChannel(javacard.framework.APDU apdu)
This method opens a Secure Channel for an application and returns the newly opened channel number. |
void |
unwrap(byte channel,
javacard.framework.APDU apdu)
This method is used to process the APDU content after receiving it from an offcard entity and within a Secure Channel. |
void |
verifyExternalAuthenticate(byte channel,
javacard.framework.APDU apdu)
This method is used to authenticate the off-card entity by verifying the contents of the APDU command. |
Method Detail |
public void closeSecureChannel(byte channel)
channel
- Secure channel numberpublic boolean decryptVerifyKey(byte channel, javacard.framework.APDU apdu, short offset)
channel
- Secure channel numberapdu
- APDU handleoffset
- Offset within the APDU buffer where the key set data field
can be retrieved.
true
if a key has been verified, false
otherwise.public byte openSecureChannel(javacard.framework.APDU apdu)
This method prepares the response to this command within the APDU. The Security Domain that the applet belongs to is responsible for the channel number allocation.
apdu
- APDU handle
public void unwrap(byte channel, javacard.framework.APDU apdu)
channel
- Secure channel numberapdu
- APDU handlepublic void verifyExternalAuthenticate(byte channel, javacard.framework.APDU apdu)
channel
- Secure channel numberapdu
- APDU handel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |