Shared contexts in applets loaded onto a data carrier

By integrating a client applet into a server applet's context, the Java Card platform addresses applet isolation issues, improving communication and memory efficiency, and simplifying applet extensions and personalization processes.

DE102022002247B4Active Publication Date: 2024-12-12GIESECKE & DEVRIENT EPAYMENTS GMBH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE102022002247
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2024-12-12
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

The existing Java Card runtime environment (JCRE) imposes restrictions on applet isolation, making it difficult for applets to share objects efficiently, leading to performance and space requirements issues, especially during modular extensions and personalization processes.

Method used

Implementing a shared context between applets by allowing a server applet to integrate a client applet into its context, enabling direct access to all objects within the shared context, reducing the need for dedicated shared interfaces and context switching.

Benefits of technology

This approach enhances inter-applet communication, reduces memory requirements, and facilitates efficient applet extensions and deletions, while optimizing firewall checks and memory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

This document provides embodiments of a method and an interface for implementing shared contexts between a multitude of applets in a JavaCard storage medium, a JavaCard runtime environment, and memory. A shared interface is implemented in a server applet, allowing a client applet to join the server applet's context. The server applet receives a request from the client applet via the shared interface to join the server applet's context. The server applet then instructs the JavaCard runtime environment to integrate the client applet into the server applet's context.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates generally to the handling of contexts and applets for Java Card applications on smart cards and in particular to exemplary embodiments for implementing contexts shared by a plurality of applets loaded into a smart card. BACKGROUND OF THE INVENTION

[0002] Smart cards and similar data carriers are used worldwide in a wide variety of applications. A smart card is a card-shaped data carrier with an embedded integrated circuit (IC), often referred to as a chip or microprocessor. It is used in the form of credit and debit cards, transit cards, SIM cards, ID cards, and the like. The embedded IC serves for data storage, additional security, and other functionalities of the smart card.

[0003] Java Card technology (or simply "Java Card") was introduced to enable programs written in the Java programming language to be run on smart cards and other small, resource-limited storage media.

[0004] Due to the limited resources on smart cards, Java Card offers an operating system that includes a streamlined version of the standard Java virtual machine, the Java Card Virtual Machine (JCVM). An implementation of the JCVM, along with Java Card API classes, is provided by the Java Card Runtime Environment (JCRE). The JCRE imposes additional runtime security requirements on disks that implement it. One such security requirement is the isolation of applets and the sharing of objects. This fundamental runtime security feature enforced by the JCRE achieves applet isolation using an applet firewall. The applet firewall prevents objects created by one applet from being used by another.Essentially, these firewalls divide the JCRE object system into separate, protected object areas called contexts. This prevents unauthorized access to data and methods of class instances.

[0005] The current implementation of the Java Card runtime environment, JCRE, supports the isolation of contexts and applets. Fig. Figure 1 shows the object system 10 of the Java Card platform with several contexts 12, 16, which are stored within the applet area and isolated from each other by firewall 2. Applets 14, 14', 18, and 18' are stored in their respective contexts. Applets belonging to the same context are stored in the same compressed applet or the corresponding CAP file. An applet instance A1, identified by the reference 14, can freely access objects belonging to applet instance A2, 14', which is located in any package within the same Java Card CAP file A. However, additional mechanisms are required to access objects in a different context. The JCRE maintains its own JCRE context 11 for storing special system privileges. The JCRE context 11 is separated from the applet area by firewall 4.

[0006] The isolation of applets requires a mechanism that allows applets to share objects in situations where interoperability is needed. The JCRE implements object sharing—that is, the sharing of objects by different applets—through the concepts of shared interfaces and shared interface objects. A shared interface defines a set of shared methods within the interface. These interface methods can be called from one context, even if the object implementing them is owned by an applet in a different context. An instance of a class that implements a shared interface is called a Shareable Interface Object (SIO).

[0007] Fig. Figure 2 illustrates object sharing, i.e., making objects available for shared use by different applets via a shared interface, as implemented in JCRE. If context 1 is the active context and a method m1 is called in an object belonging to applet A1, no context switch occurs. If method m1 calls a method m2 in an object belonging to applet A2 via a method call (0), no context switch occurs, and no firewall restrictions apply. However, if method m2 calls a method m0 in an object belonging to applet B1, firewall restrictions apply, and if access is allowed, a context switch occurs (i). Upon returning to method m2 from method m0, the context of applet A2 is restored (ii). Both the context switch and the context restoration are implemented via the shared interface.Specifically, applet B1 in its context 2 must implement a SIO to make its objects available for sharing with applet A2 in context 1. When applet A2 wants to access applet B1 (i.e., when method m2 calls method m0), applet A2 calls the SIO via the established shared interface, after which the JCVM performs the context switch. A similar procedure is implemented for restoring the context after returning to m2.

[0008] Although context switching via shared interfaces provides a secure mechanism for communication between applets, it has several weaknesses. A shared interface is a permanent bridge between two contexts and must be used every time interaction between applets within different contexts is implemented. Accessing objects via a shared interface therefore has a significant impact on performance and resource requirements.

[0009] Deploying modular extensions at runtime, such as extending the UICC file system, requires access to existing objects. Therefore, the extension must reside within the same context. For applets from different CAP files, which thus belong to different contexts, modular code extension at runtime is therefore difficult to implement.

[0010] When personalizing smart cards, the usual solution involves loading the target code into a primary context of the chip card via a first package, while the personalization code is loaded via a second package and installed in a secondary context. Some applets require significant storage space in the one-time-use personalization code. To release the personalization code after personalization, it could be moved to additional CAP files and subsequently deleted. The personalization code must then reside in the same context as the target code.

[0011] Furthermore, the process of "patching" requires a certain amount of time to adapt the data and / or structure of existing objects. Therefore, patching code could be facilitated if the patching code belongs to the same context as the objects being modified.

[0012] It is therefore the object of the present invention to propose a solution to the aforementioned disadvantages. SUMMARY OF THE INVENTION

[0013] The present invention solves the aforementioned problem by means of the subject matter specified in the independent claims. Preferred embodiments of the invention are defined in the dependent claims.

[0014] According to a first part of the present invention, a method is provided for implementing a context shared among a plurality of applets in a Java Card storage medium, wherein the Java Card storage medium comprises a Java Card Runtime Environment (JCRE) and memory, and wherein at least one first or server applet of the plurality of applets is installed in a first context in the memory. The method is carried out with respect to the first or server applet. In a first step, the server applet implements a shared interface to allow a second or client applet to join the context of the server applet. In a further step, the server applet receives a request from the client applet to join the context of the server applet via the shared interface. Subsequently, the server applet instructs the JCRE to integrate the client applet into the context of the server applet.

[0015] By implementing the context sharing method, an applet or Java code is permanently integrated into the context of another applet or Java code; that is, it is installed within or transferred to it. All objects of the applets within the context are thus fully accessible to every applet in that context. This overcomes the restriction that access to objects of different applets was previously only possible via dedicated, shared interfaces. According to the invention, the shared contexts enable efficient implementation of applet extensions at runtime as well as the deletion of applets. Furthermore, inter-applet communication, i.e., communication between applets, is improved, while memory requirements are reduced.

[0016] According to some embodiments of the present invention, the shared interface is implemented as a public interface that defines a set of methods that are shared between or jointly used by the contexts. In particular, a context-joining method is defined by which other applets from the plurality of applets can request to join the server applet's context.

[0017] Preferably, the server applet receives the request to join the server applet's context by calling the method that is parameterized with an applet object of the client applet.

[0018] An efficient way to implement a context switch is enabled by the public interface defined by the server applet.

[0019] According to some embodiments of the present invention, the method according to the first aspect comprises performing a security check on the server applet to verify the admissibility of the request to join the context.

[0020] Preferably, as part of the security check, it is verified whether a client applet identifier that corresponds to the applet object received by calling the method for context joining is included in a list of expected or allowed applet identifiers, the AIDs.

[0021] The list of expected or permitted AIDs can, for example, identify those applets that have been selected to participate in inter-applet communication. An applet that is not permitted to participate in inter-applet communication may not join the context.

[0022] Security can be increased through additional checks, such as verifying the requesting applet against other applets that already exist in the context to which it is to join.

[0023] In some embodiments of the present invention, the server applet instructs the JCRE to integrate the client applet into its own context by sending a context-sharing notification to the JCRE. This context-sharing notification initiates the JCRE's sharing of the context.

[0024] Preferably, the context-sharing notification is implemented as a system API method that receives the client applet as input and returns "TRUE" or a comparable value if the context-joining request is valid. Otherwise, it returns "FALSE" or a comparable value.

[0025] According to some embodiments of the present invention, an instance of the shared interface, through which the server applet received the context join request from the client applet, is deleted after the integration of the client applet into the context of the server applet.

[0026] Since the shared interface instance is only needed to maintain the object reference of the client applet, it can be removed after integration into the context of the server applet, thereby reducing the memory requirements of the server applet.

[0027] According to a second aspect of the present invention, a method is provided for implementing a context shared among a plurality of applets in a JavaCard storage medium, wherein the JavaCard storage medium comprises a JavaCard runtime environment (JCRE) and memory, and wherein at least one first or server applet of the plurality of applets is installed in a first context in the memory. The method is carried out with respect to a client applet and comprises, in a first step, establishing communication with the server applet via a shared interface provided by the server applet. In a subsequent step, a context join request is sent to the server applet to join the server applet's context.

[0028] According to some embodiments of the present invention, the client applet establishes communication with the server applet by sending a context join notification to the JCRE, specifying the server applet whose context the client applet is to join. This context join notification informs or confirms the client applet's wish or readiness to join the server applet's context to the JCRE. Preferably, the context join notification is implemented by the client applet as a call to the method `JCSystem.getAppletShareableInterfaceObject(AID serverAID)`, where the parameter `serverAID` identifies the server applet.

[0029] Preferably, the client applet sends the request to join the server applet's context upon or after receiving the shared interface, i.e., the SIO of the server applet, by calling a method provided by the server applet via the shared interface.

[0030] According to a third aspect, a method is provided for implementing a context shared among a plurality of applets in a JavaCard disk, wherein the JavaCard disk comprises a JavaCard runtime environment (JCRE) and memory, and at least one first or server applet of the plurality of applets in a context is installed in the memory. The method is performed with respect to the JCRE. In a first step, a context join notification is received from a second or client applet, specifying an applet identifier (AID) of a first applet installed in a first context. In subsequent steps, a context sharing notification is received from the first or server applet, and the second or client applet is installed in the first context if the context sharing notification has the value "TRUE" or a comparable value.possesses a value of comparable importance.

[0031] According to some embodiments according to the third aspect of the present invention, the JCRE installs the second applet in its own context, or the second applet remains in its own context, if the received notification about the context split has the value “FALSE” or a comparable value or a value with comparable meaning.

[0032] According to some embodiments, context joining can occur during the installation of the second applet or later at runtime.

[0033] According to a further advantageous effect, a shared interface is provided that defines a set of shared methods. These methods are made accessible from a server applet to a client applet of a multitude of applets loaded in a Java Card disk to implement inter-applet communication. The shared interface defines a method to be called by the client applet, which is parameterized with an applet object of the client applet.

[0034] This interface enables the implementation of contexts that are shared, or can be shared, between the applets of a Java Card storage medium after loading.

[0035] According to the first, second, and third aspects combined, a computer program product is provided which includes a set of instructions for performing the following steps: loading a first package onto a Java Card disk, which includes a first applet, wherein the Java Card disk comprises a Java Card Runtime Environment (JCRE) and memory; installing the first applet in a first context in the memory of the Java Card disk; loading a second package onto the Java Card disk, which includes a second applet; performing the steps according to any embodiment of the first aspect of the present invention relating to the first or server applet; performing the steps according to any embodiment of the second aspect of the present invention relating to the second or client applet; and performing the steps according to any embodiment of the third aspect of the present invention relating to the JCRE.

[0036] Further aspects, features and advantages of the present invention will become clear to the person skilled in the art upon studying the following detailed description of preferred embodiments and variants of the present invention in conjunction with the accompanying figures. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Reference is now made to the attached figures, which show: Fig. 1 a schematic representation of contexts within the object system of a Java Card platform; Fig. 2 a schematic representation of a context switch and an object access, as conventionally used in the object system of the Java Card platform according to Fig. 1 are implemented; Fig. 3 a schematic representation of shared contexts implemented on the object system of the Java Card platform according to an embodiment of the invention; Fig. 4 a flow and signal diagram illustrating function calls for implementing context sharing according to an embodiment of the invention; Fig. 5 a flowchart for the procedure according to Fig. 4, as implemented with respect to a server applet according to an embodiment of the invention; Fig. 6 a flowchart for the procedure according to Fig. 4, as implemented with respect to a client applet according to an embodiment of the invention; and Fig. 7 a flowchart for the procedure according to Fig. 4, as it is implemented with regard to the Java Card runtime environment according to an embodiment of the invention. DETAILED DESCRIPTION

[0038] The present invention is explained in detail below with reference to the accompanying drawings. These drawings show specific embodiments of the present invention. These embodiments are described in sufficient detail to enable a person skilled in the art to carry out the invention. It is understood that the various embodiments of the present invention are not mutually exclusive, even though they differ fundamentally. For example, a particular feature, structure, or property described in connection with one embodiment can be implemented in other embodiments without deviating from the scope and protection of the present invention.Furthermore, it is understood that the position or arrangement of individual elements within each disclosed embodiment can be modified without this leading to a deviation from the scope of application or protection of the present invention. The following detailed description is therefore not to be understood in a limiting sense, and the scope of the present invention is defined only by the appended claims, which are to be interpreted taking into account all equivalents arising from them and the present description. In the drawings, identical reference numerals refer to identical or similar functionalities in the different views.

[0039] In particular, the present invention and the embodiments and implementation alternatives described below can be implemented in the form of software on the Java Card platform or within a Java Card data carrier. The design of the methods and subject matter of the present invention as installable and / or executable software is therefore part of the scope of application or protection of the present invention.

[0040] Based on Fig. 2 shows Fig. 3 the object system 10 of the Java Card platform, which implements the methods according to the embodiments of the present invention. In particular, two views of the system are shown, namely on the one hand Fig. 3(a), which shows the state of object system 10 of the Java Card platform before context sharing, and on the other hand Fig. 3(b), which shows the state of object system 10 of the Java Card platform after the implementation of the context part according to embodiments of the present invention.

[0041] In relation to Fig. 3(a) The applet area is divided into two contexts, namely context 1, identified by reference numeral 12, and context 2, identified by reference numeral 16. An applet A 14 is stored in context 1, while an applet B 18 is stored in context 2. The method m1 belongs to an object belonging to applet A. The method m2 belongs to an object belonging to applet B. Furthermore, a shared interface 20 between applet A and applet B is shown. In the embodiment of Fig. 3. The shared interface is implemented by Applet A, while Applet B requests to join Applet A's context via shared interface 20. To do this, Applet B calls certain methods provided via shared interface 20, as described below with reference to the Fig. 4 and Fig. 5 is described.

[0042] As in Fig. As shown in 3(b), Applet A shares its context with Applet B during or after the implementation of the context part 18; that is, Applet B is integrated into context 1 and therefore no longer belongs to its original context, context 2. Fig. 3(a). All objects of the two applets A and B are thus used or shared and are fully accessible to each applet.

[0043] Fig. Figure 3(b) shows the state of object system 10 of the Java Card platform after context sharing has been implemented. The original context 2 of applet B has been deleted and removed from the applet area, thus freeing up memory. Furthermore, the shared interface 20 can also be deleted, as it is only needed for the initial retrieval of the object reference of the SIO provided by applet A. Therefore, there is no need to maintain the shared interface permanently, as is required in traditional solutions.

[0044] Embodiments of the proposed method for implementing context sharing of loaded applets are described below with reference to the Fig. 4 to 7 described.

[0045] The general idea of ​​the present invention is to implement so-called post-load sharing, i.e., the ability to transfer an existing context, previously created by a first CAP file, to a second CAP file that is subsequently loaded / installed. Fig. Figure 4 shows a flow and signal diagram illustrating function calls for implementing this post-load sharing of contexts.

[0046] In the first step S1, the Java kernel 8 (JavaCore; part of the JCRE) receives a function or method call from a content management unit 6, instructing the loading of a package or CAP file containing an applet A. In step S2, a function or method call instructs the Java kernel 8 to install the applet A.

[0047] The context created by an initial CAP file (package A) is now extended by a second package B, which the Java kernel 8 receives from the content management unit 6 in step S3, which is loaded into the JCRE in step S4 and installed in step S6. Preferably, applet B is installed in its own context.

[0048] Applet B is the client applet 18 and wants to join the context of server applet A 14. For this purpose, client applet B must establish communication with server applet A to obtain its SIO. This is done via the shared interface 20 (see below). Fig. 3(a)), which is implemented by Applet A. Details of the implementation procedure for Applet A are given below with reference to Fig. 5 explained.

[0049] To communicate with server applet 16, client applet 18 can call the `getAppletShareableInterfaceObject` method (`AID A`) in step S7. This method, contained in the `JCSystem` class of the JCRE (Java Core), is called by a client applet to communicate with a server applet. The method is called using the server applet's applet identifier (`AID`) and returns the server applet's SIO (Service Information Object).

[0050] In step S8, client applet 18 calls a method `joinContext(Applet applet)` that specifies the applet object the client applet wants to join. In the exemplary embodiment according to Fig. Applet 18 can call the method joinContext (A) in step 4. This method can be executed by Applet A 14, after which Applet B 18 is added to the context of Applet A in step S9 by calling the method shareContext (Applet B).

[0051] An embodiment of the above-described method for implementing a shared context, as implemented by the server applet, is described below with reference to Fig. 5 described.

[0052] If the server applet shares, or wants to share, its context, it must implement a shared or shareable interface, e.g., the shared interface 20. Fig. 3. This happens in step S11 of the Fig. 5.

[0053] A preferred implementation of the shared interface according to one embodiment is as follows: / ** * Example of an interface for applets to implement that want to share their context with another applet. * / public interface SharedContext extends Shareable { / ** * Called by the client to join the context of this applet. * * @param applet Applet * Object that wants to join the context. * / void joinContext (Applet applet);

[0054] Preferably, the shared interface is implemented as a public interface that defines a set of methods shared by contexts. In particular, a `joinContext` method is defined through which other applets from the multitude of applets can request to join the server applet's context.

[0055] Preferably, other applets send context join requests to the server applet via instances of the shared interface.

[0056] Preferably, the server applet implements the method `getShareableIn-terfaceObject(clientAID, byte)`. This method can be called by the JCRE to mediate between the client applet, which requests to use an object from another applet, and the server applet, which makes its object available for shared use.

[0057] In step S12, server applet 14 receives a request from client applet 18, via the `joinContext(Applet B)` method call, to join the server applet's context. The server applet retrieves the corresponding applet entry using the provided AID and, in step S14, calls a notification about the context sharing, preferably via the `shareContext` system API method provided in the `Apple-tEntry` class, to instruct the JCRE to integrate the client applet into the server context. / ** * Shares the context with the specified applet. * * @param applet Applet object of the applet * that wants to join * @return true if the sharing was successful, * otherwise false * / public native boolean shareContext(Applet applet);

[0058] A preferred implementation of the server applet might look like this: void joinContext (Applet applet) { / / Perform security checks to see if / / sharing the context for the applet / / is allowed AppletEntry entry = (AppletEntry) JCSystem.getAID(); entry.shareContext(applet) ;

[0059] With reference to Fig. In step S13, the server applet (14) can implement a security check to verify whether the context join request is permissible. A preferred implementation of the security check is to verify whether a client applet identifier (clientAID) corresponding to the applet object received by the `joinContext` method call is included in a list of expected applet identifiers, the AIDs.

[0060] Optionally, in step S15, the server applet can delete the instance of shared interface 20, through which the server applet received the context join request from the client applet, since the instance of shared interface is only needed to obtain object references from applets and not for persistent use.

[0061] Fig. Figure 6 shows a flowchart for the procedure according to Fig. 4, as implemented in a client applet. In a first step S21, the client applet establishes communication with the server applet by sending a context join notification to obtain the server applet's Shareable Interface Object (SIO). Preferably, this is implemented by the client applet by calling a method JCSystem.getAppletShareableInterfaceObject(AID serverAID), where the parameter serverAID identifies the server applet (for example, as in step S7 of the Fig. 4 implemented).

[0062] After receiving the SIO, the client applet sends a context join request to the server applet in step S22. A preferred implementation of this request is for the client applet to call the `joincontext` method, which the server applet provides via the SIO.

[0063] Fig. Figure 7 shows a flowchart of the procedure according to Fig. 4, as implemented in the JCRE according to a further embodiment of the invention.

[0064] In step S31, the JCRE receives the data from the client applet in step S22 ( Fig. 6) sent notification about joining the context (Join Context Notification; JCN). In step S32, the JCRE receives the notification from the server applet in step S14 ( Fig. 5) Sent notification about the sharing of context (Share Context Notification; SCN). As already mentioned in connection with Fig.As mentioned in section 5, the context sharing notification returns "TRUE" or a similar value if sharing the context is allowed, meaning if the server applet allows the client applet to join its context. Otherwise, it returns "FALSE" or a similar value. Therefore, in step S33, the JCRE can check the value of the context sharing notification, which is the value returned when the `joinContext` method is called. If this value is "TRUE" or similar, the JCRE installs client applet B in the context of server applet A. If the value is "FALSE" or similar, client applet B can be installed in its own context in step S36.Preferably, in step S35, the original context of client applet B is deleted after client applet B has been installed in the context of server applet A.

[0065] After the installation of client applet B in the context of server applet A, the objects of both applets are fully accessible to both applets A and B without requiring further interaction via the shared interface or a context switch, as is the case with conventional solutions. Both the shared interface implemented by the server applet and the original context of the client applet can be deleted, thus enabling efficient memory management for the Java Card disk.

[0066] The aspects and implementations described here thus eliminate the disadvantages and limitations that arise from maintaining a shared interface and the otherwise necessary context switching for communication between applets, and offer several advantages, such as: - In smartcard applications, the personalization code added to the target code's context can be easily deleted after personalization. This means that the personalization specification package (CPS package) and all code related to personalization can be removed once all personalization steps are complete. This reduces the storage space required on the limited disk resources. - The functionality of applets can be easily extended by installing new features for a specific applet within the existing context. - Updating the code while retaining the existing data is possible without serializing and deserializing objects. - The shared context offers an optimized way for multiple applets to share resources. Access is checked only once before joining the context, and all subsequent access attempts run within the same context with optimized firewall checks. - An access check can be flexibly implemented in the joinContext() method according to security requirements by reusing the shared interface.

[0067] In the preceding description, the invention was described with reference to specific embodiments and preferably within the context of software solutions. It became clear that various modifications and changes can be made without affecting the scope of protection of the invention. The process sequences described above, for example, are described with reference to a specific sequence of process steps. However, the sequence of many of these process steps can be changed without affecting the scope of protection or the functionality of the invention. Accordingly, the description and the figures should be understood as illustrative rather than limiting.

Claims

[1] Computer program product comprising a set of instructions for performing the following steps: - loading (S1) a first package comprising a first applet (14) onto a Java Card data carrier, the Java Card data carrier comprising a Java Card runtime environment, JCRE, (8) and a memory; - installing (S2, S5) the first applet (14) in a first context (12) in the memory of the Java Card data carrier; - loading (S3) a second package comprising a second applet (18) on the Java Card data carrier; - for implementing a context shared between a plurality of applets in the Java Card data carrier, wherein at least the first or server applet (14) of the plurality of applets is installed in a first context (12) in the memory, - Execute the steps concerning the first applet (14) or server applet (14): - implementing (S11) a shared interface (20) to enable a second or client applet (18) to join the context (12) of the server applet (14); - receiving (S12) a request to join the context of the server applet (14) from the client applet (18) via the shared interface (20); and - instructing (S14) the JCRE to integrate the client applet (18) into the first context (12) of the server applet (14); - Execute the steps concerning the second applet (18) or client applet (18): - establishing communication with the server applet (14) via a shared interface (20) provided by the server applet (14); and - sending a request to join the first context (12) of the server applet (14) to the server applet (14); and - Carry out the steps concerning the JCRE (8): - receiving a context join notification from the second or client applet (18) indicating an applet identifier, AID, of the server applet (14); - receiving a context split notification from the server applet (14), the context split notification specifying an AID of the client applet (18); and - installing the client applet (18) within the first context (12) if the context split notification is “TRUE” or a value of comparable meaning. [2] The computer program product of claim 1, wherein the shared interface (20) is implemented as a public interface defining a set of methods shared between contexts, and in particular defining a context join method by which other applets of the plurality of applets can request to join the context of the server applet (14), wherein the request to join the context (12) of the server applet (14) is received by the call to the context join method parameterized with an applet object of the client applet (18). [3] Computer program product according to claim 1 or 2, further comprising, with respect to the server applet (14), implementing (S13) a security check to verify whether the request to join the context (12) is permissible. [4] The computer program product of claim 3, wherein the security check comprises checking whether a client applet identifier corresponding to the applet object received by the call to the context join method is included in a list of allowed applet identifiers, AIDs. [5] The computer program product of any of claims 1 to 4, wherein the server applet (14) sends a context split notification to the JCRE (8) to instruct the integration of the client applet (18) into the server applet context (12). [6] The computer program product of claim 5, wherein the notification of context split is implemented as a system API method that receives as input the client applet and returns "TRUE" or a value of comparable meaning if the request to join the context is allowed, and returns "FALSE" or a value of comparable meaning otherwise. [7] The computer program product of any of claims 1 to 6, further comprising deleting an instance of the shared interface (20) after integrating the client applet (18) into the context (12) of the server applet (14). [8] The computer program product according to any one of claims 1 to 7, wherein establishing communication with the server applet (14) is implemented by sending a context join notification to the JCRE (8) indicating the server applet (14) to whose context (12) the client applet (18) is joining, the context join notification preferably being implemented as a call to a Java Card System method JCSystem.getAppletShareableInterfaceObject(AID serverAID). [9] The computer program product of any of claims 1 to 8, wherein the client applet sends the request to join the context (12) of the server applet (14) by calling a method provided by the server applet (14) via the shared interface (20). [10] Computer program product according to one of claims 1 to 9, further comprising, if the received notification of the context split is "FALSE" or a value of comparable meaning, installing the client applet (18) in a separate context. [11] The computer program product of any of claims 1 to 10, wherein the notification of the context joining of the second applet is received during installation of the second applet or later at execution time.

Citation Information

Patent Citations

  • Techniques for permitting access across a context barrier in a small footprint device using global data structures

    US7395535B2