| CPC G06F 8/65 (2013.01) [G06F 9/44521 (2013.01); G06F 9/45504 (2013.01)] | 20 Claims |

|
1. A method implemented by a Java Card device for updating a converted applet (CAP) file comprising at least one existing component on the Java Card device, comprising steps of:
receiving from a terminal one or multiple first commands, the first command comprising an update file for updating the CAP file, or the multiple first commands each comprising a portion of the update file;
determining at least one element type or location of at least one existing first element of the CAP file using type information or first location information comprised in the update file, each of the at least one element type representing one or more of: at least one component and at least one item of at least one component;
searching the CAP file on the Java Card device for the at least one existing first element using the at least one determined element type or location; and
when the at least one existing first element is found, replacing each of the at least one existing first element by one of at least one new first element comprised in the update file, wherein an element type of each of the at least one new first element is the same as an element type of the existing first element replaced by the new first element, and the one or multiple first commands are of an instruction type of instructing the Java Card device to implement the replacing step.
|