|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecureChannelx
This interface is an extension of the SecureChannel
interface that
defines one supplementary method to update the Current Security Level
during a Secure Channel Session.
An Application that wishes to use the SecureChannelx
interface shall
obtain a reference to a SecureChannel
instance and try to cast it to
the SecureChannelx
interface. Whether the objects returned by the
GPSystem.getSecureChannel()
method also implement the SecureChannelx
interface is implementation dependent, however, this may be
expressed as a requirement in specific GlobalPlatform configuration
documents.
Field Summary |
---|
Fields inherited from interface org.globalplatform.SecureChannel |
---|
ANY_AUTHENTICATED, AUTHENTICATED, C_DECRYPTION, C_MAC, NO_SECURITY_LEVEL, R_ENCRYPTION, R_MAC |
Method Summary | |
---|---|
void |
setSecurityLevel(byte bSecurityLevel)
Updates the Current Security Level. |
Methods inherited from interface org.globalplatform.SecureChannel |
---|
decryptData, encryptData, getSecurityLevel, processSecurity, resetSecurity, unwrap, wrap |
Method Detail |
---|
void setSecurityLevel(byte bSecurityLevel)
The Current Security Level cannot be set below the compulsory Session Security Level, but only equal or above. It may be increased or decreased during a Secure Channel Session as long as it is at least equal to the compulsory Session Security Level.
If the Current Security Level is SecureChannel.NO_SECURITY_LEVEL
or the
cryptographic keys required by the new Current Security Level are not
available, then this method shall throw an exception (see below).
The new Current Security Level shall apply for all subsequent invocations
of SecureChannel.wrap(byte[], short, short)
and SecureChannel.unwrap(byte[], short, short)
methods,
except when there is no current Secure Channel Session.
bSecurityLevel
- The new Current Security Level, which shall a
combination of one or more the following constants:
javacard.framework.ISOException
- with one of the following reason codes (other
reason codes specific to the underlying security protocol may be
returned):
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |