This disclosure relates to secure applications and in particular to loading classes into applications based on user security permissions.
When invoking an application on a device, it may be necessary to prevent unauthorized access to the application or to some capabilities of the application depending on the security permissions of the user. Existing solutions use conditional logic within application logic or within a security module to determine whether protected capabilities can be accessed. However, if permissions are set incorrectly, either accidentally or through malicious intent, protected capabilities may be accessed if the code implementing those capabilities is visible to the application. This can be a serious problem in distributed applications.
What is required is an improved system and method for developing and/or providing secure applications.
In one aspect of the disclosure, there is provided a method for loading a class in an application comprising determining a class requirement, determining a security permission, retrieving a class variant of the required class associated with the security permission and loading the retrieved class variant.
In one aspect of the disclosure, there is provided an application comprising a request handler and at least one class loader. The request handler may be configured to process a request for a class and determine a security permission of the application. The class loader may be configured to load a class variant dependent on the security permission.
In one aspect of the disclosure, there is provided a computer-readable medium comprising computer-executable instructions for execution by a processor, that, when executed, cause the processor to decode a security token, determine a security permission from the security token, select a class repository associated with the security permission, and load a class from the selected class repository.
Reference will now be made, by way of example only, to specific embodiments and to the accompanying drawings in which:
An application structure 10 is illustrated in
A process for loading a class is shown in the flowchart 100 of
A specific set of permissions is mapped to a specific variant set of classes. Each set may contain a different group of classes. However, each variant class that will be directly accessed by the application has the same name and namespace and provides the same public API. Each set of variant classes is contained in a separate repository, such as Repository A 17, Repository B 18, etc. The class repositories may be located locally in the filesystem or available via the network from a central remote server. The classloader 14 determines which repository to load classes from using the security permissions. When the application requires access to a class subject to security permissions, the class loader will load a variant of the class from the appropriate repository based on the application's permissions. This protects the system from accidental or malicious use of protected capabilities. Because each variant of the class has the correct namespace and provides the correct public API, the class will execute properly when loaded and invoked within the application.
One variant of the class may be coded to provide a full capability that is only accessible by a user with administrative security permissions while another variant of the same class may be coded to provide a reduced functionality accessible by a user with read-only security permissions. For example, one class variant may support creation and deletion of all user accounts, another class variant may support updating account information but not creation or deletion, and a third class variant may only support viewing account information for the current user.
In
A process for retrieving the class instance is shown in the flowchart 300 of
When the application is started, it loads a set of security permissions stored on the local computing device. The application is also configured to be aware of a number of class repositories and the permissions each repository requires. The application then initializes a set of security classloaders to load classes from each repository. Each security classloader is configured to load classes from one of the repositories, and is aware of the security permissions required by the repository. As stated previously, the class repositories may be local to the computing device, or remotely accessible through a server.
The application may be embodied in hardware, software, firmware or a combination of hardware, software and/or firmware. In a hardware embodiment, the application may execute on a processor 61 operatively associated with a memory 62 as shown in
The processor 61 may communicate with a second processor 71, such as a class repository processor associated with a memory 72 that stores a number of class repositories. The application processor 61 may send class requests to the class repository processor 71 through a suitable communications link 65.
Although embodiments of the present invention have been illustrated in the accompanied drawings and described in the foregoing description, it will be understood that the invention is not limited to the embodiments disclosed, but is capable of numerous rearrangements, modifications, and substitutions without departing from the spirit of the invention as set forth and defined by the following claims. For example, the capabilities of the invention can be performed fully and/or partially by one or more of the blocks, modules, processors or memories. Also, these capabilities may be performed in the current manner or in a distributed manner and on, or via, any device able to provide and/or receive information. Further, although depicted in a particular manner, various modules or blocks may be repositioned without departing from the scope of the current invention. Still further, although depicted in a particular manner, a greater or lesser number of modules and connections can be utilized with the present invention in order to accomplish the present invention, to provide additional known features to the present invention, and/or to make the present invention more efficient. Also, the information sent between various modules can be sent between the modules via at least one of a data network, the Internet, an Internet Protocol network, a wireless source, and a wired source and via plurality of protocols.
Number | Name | Date | Kind |
---|---|---|---|
5848232 | Lermuzeaux et al. | Dec 1998 | A |
6044467 | Gong | Mar 2000 | A |
6173404 | Colburn et al. | Jan 2001 | B1 |
6871277 | Keronen | Mar 2005 | B1 |
6895586 | Brasher et al. | May 2005 | B1 |
7424543 | Rice, III | Sep 2008 | B2 |
7653811 | Yagiura | Jan 2010 | B2 |
8229974 | Lowry et al. | Jul 2012 | B2 |
8271369 | Gilmore | Sep 2012 | B2 |
20010027527 | Khidekel et al. | Oct 2001 | A1 |
20020035514 | Whitley et al. | Mar 2002 | A1 |
20020174010 | Rice, III | Nov 2002 | A1 |
20030033539 | Cheng | Feb 2003 | A1 |
20040142682 | Kamiya et al. | Jul 2004 | A1 |
20040158718 | Gelbord et al. | Aug 2004 | A1 |
20050235291 | Kamiya et al. | Oct 2005 | A1 |
20050262494 | Fung et al. | Nov 2005 | A1 |
20060037082 | LaMacchia et al. | Feb 2006 | A1 |
20060047659 | Yagiura | Mar 2006 | A1 |
20060070112 | LaMacchia et al. | Mar 2006 | A1 |
20060288404 | Kirshnan et al. | Dec 2006 | A1 |
20070011749 | Allison et al. | Jan 2007 | A1 |
20070174281 | Chase | Jul 2007 | A1 |
20080159540 | Maetz et al. | Jul 2008 | A1 |
20080168528 | Lin et al. | Jul 2008 | A1 |
20080192643 | Bae et al. | Aug 2008 | A1 |
20080201693 | Centonze et al. | Aug 2008 | A1 |
20080301710 | Shetty | Dec 2008 | A1 |
20090193492 | Banerjee et al. | Jul 2009 | A1 |
20090193515 | Kamiya et al. | Jul 2009 | A1 |
20090232141 | Fersman et al. | Sep 2009 | A1 |
20090320121 | Maida-Smith et al. | Dec 2009 | A1 |
20100036869 | Lowry et al. | Feb 2010 | A1 |
20110083162 | Sathish | Apr 2011 | A1 |
Number | Date | Country |
---|---|---|
1416353 | Feb 2004 | EP |
1507211 | May 2004 | EP |
1507211 | Feb 2005 | EP |
5241797 | Sep 1993 | JP |
8263441 | Nov 1996 | JP |
2003-332978 | Nov 2003 | JP |
2004152022 | May 2004 | JP |
2006040146 | Sep 2006 | JP |
2006344057 | Dec 2006 | JP |
2007213595 | Aug 2007 | JP |
2009271567 | Nov 2009 | JP |
2011068630 | Jun 2011 | WO |
Entry |
---|
Li Gong; , “Secure Java class loading,” Internet Computing, IEEE , vol. 2, No. 6, pp. 56-61, Nov/Dec 1998 doi: 10.1109/4236.735987 URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=735987&isnumber=15853. |
Gong L.; “Java Security Architecture” (JDK 1.2) Version 1.0; Internet Citation, Dec. 6, 1998; XP002171445; retrieved Jul. 9, 2001. |
European Patent Office; Extended search report for EP application No. 10193298.6 2212, Patent No. 2341457; May 31, 2012; 8 pages. |
European Patent Office; IB International Preliminary Report on Patentability and Written Opinion of the ISA, PCT/ US2010/055703; Jun. 14, 2012; 6 Pages. |
Gong L.; DK12SPEC PDF/Java—TM—SecurityArchiecture PDF: “Java Security Architecture Version 1.0”; Internet citation, Dec. 6, 1998; Retrieved on Jul. 9, 2001, URL:http://citeseer.nj.nec.com/rd; whole document, 20 pages. |
European Patent Office; PCT Search Report and Written Opinion; PCT/US2010/055703; Jan. 25, 2011; 11 Pages. |
Number | Date | Country | |
---|---|---|---|
20110138460 A1 | Jun 2011 | US |