|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sim.toolkit.ViewHandler | +--sim.toolkit.EditHandler | +--sim.toolkit.EnvelopeResponseHandler
The EnvelopeResponseHandler class contains basic methods to handle the Envelope response
data field. This class will be used by the Toolkit applet in order to
edit the response to current Envelope command. No constructor is available
for the Toolkit applet. The EnvelopeResponseHandler class is a Temporary
JCRE Entry Point Object. The only way to get a EnvelopeResponseHandler
reference is through the getTheHandler()
static method.
ViewHandler
,
EditHandler
,
EnvelopeHandler
,
ToolkitException
Method Summary | |
short |
getCapacity()
Returns the maximum size of the Simple TLV list managed by the handler. |
static EnvelopeResponseHandler |
getTheHandler()
Returns the single system instance of the EnvelopeResponseHandler class. |
void |
post(byte statusType)
Pepares the Envelope response. |
void |
postAsBERTLV(byte statusType,
byte tag)
Prepare the Envelope response in a BER TLV structure. |
Methods inherited from class sim.toolkit.EditHandler |
appendArray, appendTLV, appendTLV, appendTLV, appendTLV, clear |
Methods inherited from class sim.toolkit.ViewHandler |
compareValue, copy, copyValue, findAndCompareValue, findAndCompareValue, findAndCopyValue, findAndCopyValue, findTLV, getLength, getValueByte, getValueLength |
Methods inherited from class java.lang.Object |
equals |
Method Detail |
public static EnvelopeResponseHandler getTheHandler() throws ToolkitException
ToolkitException
- with the following reason codes: HANDLER_NOT_AVAILABLE
if the handler is busy.public void post(byte statusType) throws javacard.framework.APDUException, ToolkitException
statusType
- the status to be sent to the ME (SW1_RP_ACK or SW1_RP_ERROR)
ToolkitException
- with the following reason codes: HANDLER_NOT_AVAILABLE
if the handler is busy javacard.framework.APDUException
- with the following reason code: BAD_LENGTH
if the resulting response length is greater
than 256 and the response data has to be retrieved by the GET RESPONSE
command.public void postAsBERTLV(byte statusType, byte tag) throws javacard.framework.APDUException, ToolkitException
statusType
- the status to be sent to the ME (SW1_RP_ACK or SW1_RP_ERROR)tag
- the BER Tag to be used at the beginning of the SIMPLE_TLV list.
ToolkitException
- with the following reason codes: HANDLER_NOT_AVAILABLE
if the handler is busyjavacard.framework.APDUException
- with the following reason code: BAD_LENGTH
if the resulting response length is greater
than 256 and the response data has to be retrieved by the GET RESPONSE
command.public short getCapacity() throws ToolkitException
ToolkitException
- with the following reason codes: HANDLER_NOT_AVAILABLE
if the handler is busy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |