Patent ID: 8782807

Claim:
A method of performing code authentication of code executing on an electronic device, the method comprising: identifying a first requirement, stored in secured information in a first code, that constrains a second code executing on the electronic device to code provided by a particular authority and authorized, by the particular authority, to perform a particular action, wherein the first code is responsible for hosting the execution of the second code; identifying a second requirement, stored in secured information in the second code, that constrains a third code for which the second code is allowed to manage execution; obtaining identity information for the second code that identifies an authority of the second code and an action authorized, by the authority of the second code, to be performed by accessing the secured information in the second code on the electronic device; determining (i) whether the second code satisfies the first requirement based on a comparison between the identity information and the first requirement and (ii) whether the third code satisfies the second requirement; and providing a result of the determinations to the first code.