首页> 外国专利> Method and device for selectively protecting one of a plurality of methods of a class of an application written in an object-orientated language

Method and device for selectively protecting one of a plurality of methods of a class of an application written in an object-orientated language

机译:用于选择性地保护以面向对象的语言编写的应用程序类的多种方法之一的方法和设备

摘要

There is provided a method for selectively protecting one of a plurality of methods of a class of an application written in an object-orientated language, in particular Java, wherein a protected application is created by adding a protection module to the application, analyzing a first method to be protected of a plurality of methods of a first class of the application and determining first parameters needed for executing the first method, generating first gate code depending on the determined first parameters, replacing the first code of the first method by said first gate code and storing the replaced first code such that it can be accessed by the protection module during execution of the protected application, wherein, when the first method is called during execution of the protected application, the first gate code collects first data based on the determined first parameters and transmits the collected first data to the protection module, the protection module accesses the stored first code and generates a new class including a first substitution method based on the stored first code, instantiates the new class, invokes the first substitution method and passes at least a part of the collected first data to the invoked first substitution method so that the executed first substitution method provides the functionality of the first method, and returns execution to the first gate code after execution of the first substitution method.
机译:提供了一种用于选择性地保护以面向对象的语言,特别是Java编写的应用程序的类的多种方法中的一种的方法,其中,通过向应用程序添加保护模块并首先分析保护模块来创建受保护的应用程序。方法,以保护应用程序的第一类的多种方法,并确定执行该第一方法所需的第一参数,根据确定的第一参数生成第一门代码,用所述第一门替换第一方法的第一代码代码并存储替换后的第一代码,以便保护模块可以在受保护应用程序执行期间对其进行访问,其中,当在受保护应用程序执行期间调用第一方法时,第一门控代码会根据确定的内容收集第一数据第一参数并将收集到的第一数据传输至保护模块,保护模块访问存储的数据第一个代码,并基于存储的第一代码生成一个包含第一替换方法的新类,实例化新类,调用第一替换方法,并将收集到的第一数据的至少一部分传递给调用的第一替换方法,以便执行第一替代方法提供了第一方法的功能,并且在执行第一替代方法之后将执行返回到第一门代码。

著录项

  • 公开/公告号US8656501B2

    专利类型

  • 公开/公告日2014-02-18

    原文格式PDF

  • 申请/专利权人 BENJAMIN GNAHM;

    申请/专利号US201113174917

  • 发明设计人 BENJAMIN GNAHM;

    申请日2011-07-01

  • 分类号G06F21/00;G06F12/14;G06F9/44;G06F12/00;G06F17/30;G06Q99/00;H04L9/00;

  • 国家 US

  • 入库时间 2022-08-21 16:00:33

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号