摘要 |
A method for extending JavaCard application functions. A registration process comprises: when an extended application receives a registration command, the extended application processes a random number, and sends a processing result, an extended application identifier and an extension interface number to a main application; the main application verifies the processing result, and if the verification is passed, when the extended application corresponding to the extended application identifier has been installed, the main application sets the bit of an extension point according to the extension number and acquires and saves a handle of the extended application; and save the state of an extension interface registered by the extended application into a buffer area. By means of the solution of registering an extension interface corresponding to an extended application with a main application, and invoking the corresponding extended application through the registered extension interface when the main application needs to invoke the extended application, a method for updating applications without losing personal data of a user after masking is provided; a masking application can be used continuously after an error occurs in the masking application, and the method is suitable for masked cards and unmasked cards. |