Patent ID: 8640115
Filing Date: 2014-01-28
Classification: G06F

Abstract:
1. A computer-implemented method for providing access control for a software program, comprising: identifying a member of a module to be used in the software program; inferring the visibility of the member based on the accessibility of the member; and using the visibility and the accessibility to provide access control during the life cycle of the software program, wherein using the accessibility to provide access control during the life cycle of the software program involves associating the member with a token and using the token to control access to a module-private member during runtime of the software program; an accessing class is allowed to access the module-private member if the accessing class is associated with the token; wherein the module contains a first portion of a package to be used in the software program, and wherein a locally dependent module contains a second portion of the package, wherein the module and the locally dependent module are loaded in a common loader to facilitate package-private access between the first portion of the package and the second portion of the package.