public interface EnvelopeResponseHandler extends EditHandler
EnvelopeResponseHandler interface 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. A class implementing the EnvelopeResponseHandler interface is a Temporary
JCRE Entry Point Object. The only way to get an EnvelopeResponseHandler
reference is through the static getTheHandler() method of the EvelopeResponseHandlerSystem classViewHandler,
EditHandler,
EnvelopeHandler,
ToolkitException| Modifier and Type | Method and Description |
|---|---|
void |
post(boolean value)
Prepares the Envelope response
|
void |
postAsBERTLV(boolean value,
byte tag)
Prepare the Envelope response in a BER TLV structure.
|
appendArray, appendTLV, appendTLV, appendTLV, appendTLV, appendTLV, appendTLV, appendTLV, appendTLV, clearcompareValue, copy, copyValue, findAndCompareValue, findAndCompareValue, findAndCopyValue, findAndCopyValue, findTLV, getCapacity, getLength, getValueByte, getValueLength, getValueShortvoid post(boolean value)
throws javacard.framework.APDUException,
ToolkitException
value - indicating successful processing of the Envelope command
The CAT Runtime Environment has to map the boolean value to the correct status wordToolkitException - 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.void postAsBERTLV(boolean value,
byte tag)
throws javacard.framework.APDUException,
ToolkitException
value - indicating successful processing of the Envelope command
The CAT Runtime Environment has to map the boolean value to the correct status wordtag - the BER Tag to be used at the beginning of the Comprehension_TLV list.javacard.framework.APDUException - with the following reason code: BAD_LENGTH if the resulting response length is greater
than 256 bytes and the response data has to be retrieved by the GET RESPONSE
command.ToolkitException - with the following reason codes: HANDLER_NOT_AVAILABLE if the handler is busy