WO2012048645A1 - Trial method, system and device for java applications - Google Patents

Trial method, system and device for java applications Download PDF

Info

Publication number
WO2012048645A1
WO2012048645A1 PCT/CN2011/080706 CN2011080706W WO2012048645A1 WO 2012048645 A1 WO2012048645 A1 WO 2012048645A1 CN 2011080706 W CN2011080706 W CN 2011080706W WO 2012048645 A1 WO2012048645 A1 WO 2012048645A1
Authority
WO
WIPO (PCT)
Prior art keywords
trial
java application
mobile terminal
network side
side device
Prior art date
Application number
PCT/CN2011/080706
Other languages
French (fr)
Chinese (zh)
Inventor
魏向林
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012048645A1 publication Critical patent/WO2012048645A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs

Definitions

  • the present invention relates to the field of mobile terminals and the field of JAVA technologies, and in particular to a trial method, system and apparatus for a JAVA application.
  • BACKGROUND OF THE INVENTION In recent years, with the development of mobile terminals such as mobile phones, PDAs (Personal Digital Assistants), and the transformation of people-oriented services, more and more terminals are preset with many JAVA applications at the factory. These applications enhance the consumer experience and become a big selling point for the terminal.
  • the preset mode of the JAVA application is negotiated by the terminal manufacturer and the application vendor to pay the application manufacturer license purchase fee or other purchase method for the application preset.
  • the application vendor allows free presets, free downloads, and free trial versions of the JAVA application.
  • These trial versions are divided into functional restrictions, time limits, and number limits. Functional limitations hinder the user's experience and have gradually withdrawn from the trial arena. The market is often limited by time and number of times. When the user is satisfied with the trial version, they can pay for the official version. Because these trial versions mostly perform some permission checks from the JAVA application itself, the user can achieve some circumvention through some special operations, such as modifying the RMS (Resource Management System) database record of the JAVA application, modifying the system time and other methods.
  • RMS Resource Management System
  • SUMMARY OF THE INVENTION The present invention provides a trial method, system and apparatus for a JAVA application to solve the problem of insufficient security of a trial version of the aforementioned JAVA application.
  • a method for testing a JAVA application including: a mobile terminal launching a JAVA application, wherein a JAVA virtual machine of the mobile terminal is configured with a trial authentication module; and a trial authentication module determines a JAVA application As a trial version; the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used; if so, continues to run the JAVA application; if not, close the JAVA application.
  • the mobile terminal determines that the JAVA application is a trial version according to the attribute information of the JAVA application, and invokes the trial authentication module; and the trial authentication module determines whether to allow the network side device. Install the JAVA application; if yes, allow the mobile terminal to continue installing the JAVA application; if not, cancel the installation of the JAVA application.
  • the trial authentication module determines whether to allow the installation of the JAVA application to the network side device, including: the trial authentication module collects the trial information of the JAVA application, and sends the trial information to the network side device; wherein the trial information includes: the identifier of the mobile terminal, The identifier of the JAVA application and the version of the JAVA application; the network side device determines whether the JAVA application is installed on the mobile terminal for the first time based on the trial information, and if so, registers the trial information, and notifies the trial authentication module to allow the JAVA application to be installed; , notify the trial authentication module does not allow the installation of JAVA applications.
  • the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used, including: the trial authentication module sends the trial information to the network side device; the network side device obtains the current trial value of the JAVA application according to the trial information, according to the trial value. Whether the authentication JAVA application can continue to be used, and the certification result is notified to the trial authentication module.
  • the network side device verifies whether the JAVA application can continue to be used according to the trial value. The network side device obtains the trial rule corresponding to the JAVA application according to the trial information, and modifies the trial value of the JAVA application according to the corresponding trial rule, and obtains the current trial.
  • a mobile terminal including: a startup module configured to start a JAVA application; a trial authentication module configured in a JAVA virtual machine of the mobile terminal, configured to determine a JAVA application initiated by the startup module
  • the program is a trial version, and the JAVA application can be authenticated to the network side device; the trial module, when the authentication result of the trial authentication module is set to Yes, the JAVA application is run; when the authentication result of the trial authentication module is No, the JAVA is closed.
  • the mobile terminal further comprises: an installation and calling module, configured to install the JAVA application, according to
  • the attribute information of the JAVA application determines that the JAVA application is a trial version, and invokes the trial authentication module.
  • the trial authentication module includes: an installation determining unit configured to determine, according to the call of the installation and calling module, whether to allow the installation of the JAVA application to the network side device; If yes, notify the install and call module to continue installing the JAVA application; if not, cancel the installation of the JAVA application.
  • the installation determining unit comprises: an information sending subunit, configured to collect trial information of the JAVA application, and send the trial information to the network side device, so that the network side device determines whether to allow the JAVA to be installed.
  • the program includes: the identifier of the mobile terminal, the identifier of the JAVA application, and the version of the JAVA application.
  • a network side device including: a receiving module, configured to receive trial information of a JAVA application sent by a mobile terminal; the trial information includes: an identifier of the mobile terminal, the JAVA application The identifier and the version of the JAVA application; the authentication and notification module is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the mobile terminal of the authentication result.
  • the authentication and notification module includes: a determining unit configured to determine whether the JAVA application is installed on the mobile terminal for the first time according to the trial information; and the notification unit, when the determination result of the determining unit is YES, registering the trial information, and notifying the mobile
  • the terminal allows the installation of the JAVA application; when the judgment unit determines that the result is no, the mobile terminal is notified that the JAVA application is not allowed to be installed.
  • the authentication and notification module further includes: a trial value obtaining unit configured to acquire a current trial value of the JAVA application according to the trial information; and an authentication unit configured to authenticate whether the JAVA application can continue according to the trial value obtained by the trial value obtaining unit Use, and notify the mobile terminal of the authentication result.
  • the trial value obtaining unit comprises: an update subunit, configured to obtain a trial rule corresponding to the JAVA application according to the trial information, modify the trial value of the JAVA application according to the corresponding trial rule, and obtain a current trial value; the authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold.
  • the second authentication subunit when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used.
  • a trial system for a JAVA application including the above mobile terminal and the network side device.
  • FIG. 1 is a flowchart of a trial method of a JAVA application according to Embodiment 1 of the present invention
  • 2 is a schematic diagram of a trial method of a JAVA application-based JAVA application according to Embodiment 2 of the present invention
  • FIG. 1 is a flowchart of a trial method of a JAVA application according to Embodiment 1 of the present invention
  • 2 is a schematic diagram of a trial method of a JAVA application-based JAVA application according to Embodiment 2 of the present invention
  • FIG. 1 is a flowchart of a trial method of a JAVA application according to Embodiment 1 of the present invention
  • 2 is a schematic diagram of a trial method of a JAVA application-based JAVA application according to Embodiment 2 of the present invention
  • FIG. 1 is a flowchart of a trial method of a JAVA application according to Embodiment 1 of the present invention
  • 2 is a schematic diagram of
  • FIG. 3 is a flowchart of a method for installing a trial version of a JAVA application on a mobile terminal according to Embodiment 3 of the present invention
  • FIG. 5 is a structural block diagram of a trial system of a JAVA application program according to Embodiment 4 of the present invention
  • FIG. 6 is a flowchart of a method for using a JAVA application program for a trial version in a mobile phone terminal according to Embodiment 3 of the present invention
  • Figure 7 is a block diagram showing the structure of a mobile terminal according to Embodiment 5 of the present invention
  • Figure 8 is a block diagram showing the structure of a network side device according to Embodiment 6 of the present invention.
  • a trial authentication module is set inside the virtual machine of the mobile terminal, and a standard API (Application Program Interface) of the trial authentication module is opened to the application developer, and the application developer uses the application in the application.
  • This standard API enforces authentication for JAVA applications.
  • an embodiment of the present invention provides a trial method, system, and device for a JAVA application, where the device includes a mobile terminal and a network side device.
  • Step S102 A mobile terminal starts a JAVA application, where the mobile terminal JAVA virtual A trial authentication module is configured in the machine; preferably, before the step S102, the method further includes the step of installing the JAVA application, in order to limit the operation of the trial version of the JAVA application, the mobile terminal installation of the embodiment of the present invention
  • Step S102 A mobile terminal starts a JAVA application, where the mobile terminal JAVA virtual A trial authentication module is configured in the machine; preferably, before the step S102, the method further includes the step of installing the JAVA application, in order to limit the operation of the trial version of the JAVA application, the mobile terminal installation of the embodiment of the present invention
  • the trial authentication module is invoked; the trial authentication module determines whether the JAVA application is allowed to be installed to the network side device; if yes, allows The mobile terminal continues to install the JAVA application; if not, the installation of the JAVA application is cancelled.
  • the network side device may be a device used by the content provider, and the trial authentication module may obtain the network address of the network side device from the attribute information of the JAVA application, and perform wireless air communication between the authentication module and the network side device, for example, Sending trial information to the network side device in a hypertext link.
  • the trial authentication module cancels the installation of the JAVA application, the user can be notified of the reason why the installation is cancelled.
  • the trial version of the JAVA application can be installed only once on the mobile terminal, and the next installation requires the purchase of a genuine JAVA application. Wait.
  • the trial authentication module determines whether to allow the installation of the JAVA application to the network side device, and specifically includes: the trial authentication module collects the trial information of the JAVA application, and sends the trial information to the network side device; wherein, the trial information includes: Identification (for example: mobile phone number), identification of JAVA application (for example: application name) and version of JAVA application; or may include information such as application vendor; network side device determines whether JAVA application is mobile for the first time based on trial information The terminal is installed, if yes, the trial information is registered, and the trial authentication module is notified to allow the JAVA application to be installed; if not, the trial authentication module is not allowed to install the JAVA application.
  • the trial information includes: Identification (for example: mobile phone number), identification of JAVA application (for example: application name) and version of JAVA application; or may include information such as application vendor; network side device determines whether JAVA application is mobile for the first time based on trial information The terminal is installed, if yes, the trial
  • Step S104 the trial authentication module determines that the JAVA application is a trial version.
  • the authentication information may be determined by referring to the attribute information of the JAVA application.
  • Step S106 the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used; if yes, step S108 is performed; if no, step S110 is performed; for example, the trial authentication module sends the trial information of the JAVA application to the network side.
  • the device requests to authenticate the authority of the JAVA application; the network side device acquires the current trial value of the JAVA application according to the trial information, and verifies whether the JAVA application can continue to be used according to the trial value, and notifies the authentication result to the trial authentication.
  • the trial value may be expressed in time or in number of times, and the obtaining manner is as follows: The network side device acquires the trial rule corresponding to the JAVA application according to the trial information, and modifies the trial value of the JAVA application according to the corresponding trial rule.
  • the current trial value is obtained; when the current trial value meets the trial threshold, the network side device determines that the JAVA application can continue to be used; when the current trial value does not satisfy the trial threshold, the network side device determines that the JAVA application cannot be used continuously.
  • Step SI 08 continue to run the above JAVA application;
  • Step S110 close the JAVA application.
  • the network side device returns the authentication result to the trial authentication module. When the trial exceeds the limit, the network side device notifies the trial authentication module that the authentication module cannot be used continuously.
  • the trial authentication module closes the JAVA application, and at the same time, can also inform the user of the recharge method or the official version download address. information.
  • Embodiment 2 As shown in FIG. 2, it is a schematic diagram of a trial method of a JAVA application-based JAVA application described in the embodiment of the present invention, and the method includes the following steps:
  • the JAVA virtual machine determines whether the JAVA application is a trial version
  • trial information of the JAVA application includes: the identifier of the mobile terminal (for example: mobile phone number), the identifier of the JAVA application (for example: application name), and The version of the JAVA application; or may include information such as the application vendor;
  • the application When running the trial version of the JAVA application, the application is forced to authenticate through the extended trial authentication module API; (5) wireless air communication between the trial authentication module and the content provider, and querying the user registration in the database server Trial information, and modify the trial value according to the trial method (by time or by time);
  • the content provider returns the authentication information (for example, whether it can continue to be used, how many times it can be used, or how long it can be used) to the trial authentication module.
  • the content provider notifies the trial authentication module that it cannot Continue to use, inform the user of the recharge method or the official version of the download address.
  • the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application.
  • the problem of insufficient sex maintains the interests of application vendors.
  • Step S302 the user installs a trial version of the JAVA application
  • Step S304 discovering JAD during installation (Java Application Descriptor Java, application description file) with trial:// attribute, judged as trial version application, dispatch trial authentication module to collect mobile phone and application information (ie JAVA application trial information), such as mobile phone number, application name , application vendor, application version, etc.
  • step S306 trial authentication module according to the URL specified by the trial:// attribute (Uniform Resource
  • Step S308 querying the content provider data server for relevant trial information, if it is the first trial, registering the trial information, specifically The trial mode is specified by the content provider; in step S310, the content provider server returns the registration details to the trial authentication module (for example, whether the mobile phone is allowed to install the JAVA application); Step S312, the trial authentication module records the registration information, and notifies the user Successful installation or not.
  • the above steps mainly describe the normal operation of the installation. If an abnormal situation occurs, the process ends. As shown in FIG.
  • a flow chart of a method for using a trial version of a JAVA application on a mobile terminal includes the following steps (note that the following steps mainly describe normal use, such as an abnormal situation, the process ends): Step S402, the user runs a trial version of the JAVA application; Step S404, the application runtime invokes the API of the trial authentication module to obtain trial information of the JAVA application, such as the above mobile phone and application information, such as mobile phone number, application name, application vendor, application a version and the like information; step S406, the trial authentication module sends the trial information to the web server of the content service provider according to the url specified by the trial:// attribute; step S408, querying the relevant trial information in the content provider data server, and Modify the trial information according to the specific trial method, such as the number of times, time, etc.; Step S410, the content provider returns the trial details to the trial authentication module.
  • Step S412 the trial authentication module notifies the user whether to continue to use, and if the user cannot continue to use, the user is notified of the recharge or the official version of the download path, and if the user continues to use, the user is notified.
  • the remaining trial limits When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application.
  • the problem of insufficient sex maintains the interests of application vendors.
  • FIG. 5 is a structural block diagram of a trial system of a JAVA application program, which includes a mobile terminal 52 and a network side device 54.
  • the mobile terminal 52 includes: a startup module 522, which is set in accordance with an embodiment of the present invention.
  • the trial authentication module 524 is connected to the startup module 522 and configured in the JAVA virtual machine of the mobile terminal 52, and is configured to determine that the JAVA application launched by the startup module 522 is a trial version, and authenticate the JAVA to the network side device 54. Whether the application can continue to be used; the trial module 526 is connected to the trial authentication module 524, and when the authentication result of the trial authentication module 524 is set to Yes, the JAVA application is run; when the authentication result of the trial authentication module 524 is negative, the JAVA application is closed.
  • the network side device 54 includes: an authentication and notification module 542 configured to authenticate whether the JAVA application can continue to be used, and notify the trial authentication module of the authentication result.
  • the mobile terminal 52 further includes: an installation and calling module, configured to install the JAVA application, determine the JAVA application as a trial version according to the attribute information of the JAVA application, and invoke the trial authentication module 524; accordingly, the trial authentication module 524 includes : an installation determining unit, configured to determine, according to the call of the installation and calling module, whether to allow the JAVA application to be installed to the network side device 54; if yes, notifying the above installation and calling module to continue installing the JAVA application; if not, canceling the installation JAVA application.
  • the installation determining unit includes: an information sending subunit, configured to collect trial information of the JAVA application, and send the trial information to the network side device 54; wherein the trial information includes: an identifier of the mobile terminal 52, and an identifier of the JAVA application And the version of the JAVA application; based on this, the authentication and notification module 542 package
  • the judging unit is configured to determine whether the JAVA application is installed on the mobile terminal 52 for the first time according to the trial information; and the notification unit, when the judgment result of the judging unit is set to YES, register the trial information, and notify the trial authentication module 524 to allow JAVA to be installed.
  • the trial authentication module 524 includes: a trial information sending unit, configured to send the trial information to the network side device 54; correspondingly, the authentication and notification module 542 includes : The trial value obtaining unit is configured to obtain the current trial value of the JAVA application according to the trial information; the authentication unit is configured to authenticate whether the JAVA application can continue to be used according to the trial value obtained by the trial value obtaining unit, and notify the trial authentication of the authentication result. Module 524.
  • the trial value can be expressed in time or in number of times.
  • the trial value obtaining unit includes: an update subunit, configured to obtain a trial rule corresponding to the JAVA application according to the trial information, modify the trial value of the JAVA application according to the corresponding trial rule, and obtain the current trial value;
  • the authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold.
  • the second authentication subunit when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used.
  • the network side device of this embodiment may be a network server of a content provider.
  • FIG. 6 is a structural block diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal includes: a startup module 62 configured to start a JAVA application; a trial authentication module 64 connected to the startup module 62, configured In the JAVA virtual machine of the mobile terminal, the JAVA application set to determine the startup module is a trial version, and the network side device is authenticated whether the JAVA application can continue to be used; the trial module 66 is connected to the trial authentication module 64, and is set to trial.
  • the authentication result of the authentication module 64 is YES
  • the JAVA application is run; when the authentication result of the trial authentication module 64 is NO, the JAVA application is closed. As shown in FIG.
  • the mobile terminal includes: an installation and invocation module 60, configured to install a JAVA application, and determine a JAVA application as a trial version according to the attribute information of the JAVA application, as shown in FIG.
  • the trial authentication module 64 includes: an installation determining unit, configured to: determine, according to the call of the installation and calling module 60, whether to allow the installation of the JAVA application to the network side device; if yes, notify the installation and invocation module 60 to continue to install the JAVA Application; if no, cancel the installation of the JAVA application.
  • the installation determining unit includes: an information sending subunit, configured to collect the trial information of the JAVA application, and send the trial information to the network side device, so that the network side device determines whether to allow the JAVA application to be installed; wherein, the trial information includes: The identity of the mobile terminal, the identity of the JAVA application, and the version of the JAVA application.
  • the network side device of this embodiment may be a network server of a content provider.
  • FIG. 8 is a structural block diagram of a network side device according to an embodiment of the present invention.
  • the network side device includes: a receiving module 82, configured to receive trial information of a JAVA application sent by the mobile terminal; The identifier of the mobile terminal, the identifier of the JAVA application, and the version of the JAVA application; the authentication and notification module 84 is connected to the receiving module 82, and is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the above result of the authentication result.
  • Mobile terminal includes: a receiving module 82, configured to receive trial information of a JAVA application sent by the mobile terminal; The identifier of the mobile terminal, the identifier of the JAVA application, and the version of the JAVA application; the authentication and notification module 84 is connected to the receiving module 82, and is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the above result of the authentication result.
  • Mobile terminal includes: a
  • the authentication and notification module 84 of the embodiment includes: a determining unit, configured to determine whether the JAVA application is the first time based on the trial information.
  • the terminal installation; the notification unit is configured to register the trial information when the judgment result of the determination unit is YES, and notify the mobile terminal to permit the installation of the JAVA application; and when the determination result of the determination unit is no, notify the mobile terminal that the JAVA application is not allowed to be installed.
  • the authentication and notification module 84 includes: a trial value obtaining unit, configured to obtain a current test of the JAVA application according to the trial information.
  • the authentication unit is configured to authenticate whether the JAVA application can continue to be used according to the trial value obtained by the trial value acquisition unit, and notify the mobile terminal of the authentication result.
  • the trial value obtaining unit includes: an update subunit, configured to acquire a trial rule corresponding to the JAVA application according to the trial information, modify a trial value of the JAVA application according to the corresponding trial rule, and obtain a current trial value;
  • the foregoing authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold.
  • the second authentication subunit when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used.
  • the network side device authenticates the authority of the application, avoids the authentication failure caused by some external modification, and solves the problem that the trial version of the JAVA application is insufficient in security. Maintain the interests of application vendors.
  • the above embodiment enforces the authentication of the JAVA application running on the mobile terminal, thereby effectively avoiding the unrestricted use of the trial version of the JAVA application due to the user's own modification of the JAVA application related information, thereby enhancing the trial version of JAVA.
  • the security used by the application maintains the interests of the application vendor.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Abstract

Disclosed are a trial method, system and device for Java applications. The method comprises: a mobile terminal activates a Java application, wherein the Java virtual machine of the mobile terminal is equipped with a trial authentication module; the trial authentication module verifies that the Java application is a trial version; the trial authentication module verifies with a network side device whether the Java application can continue to be used; if it can, continue to run the Java application; if it cannot, close the Java application. The present solution avoids the problem of failed authentication due to certain external modifications, thus solving the problem of inadequate security of Java application trial versions.

Description

JAVA应用程序的试用方法、 系统和装置 技术领域 本发明涉及移动终端领域和 JAVA技术领域, 具体而言, 涉及一种 JAVA应用程 序的试用方法、 系统和装置。 背景技术 近年来, 随着手机、 PDA (Personal Digital Assistant, 个人数字助理) 等移动终端 的发展, 以及以人为本服务的消费转型,越来越多的终端在出厂时即预置了很多 JAVA 应用。 这些应用增强了用户的消费体验, 成为终端的一大卖点。 通常 JAVA应用的预置模式是由终端厂商和应用厂商进行协商, 以付给应用厂商 许可证购买费或其它购买方式来进行应用的预置。 应用厂商为了更好地推广应用, 允 许免费预置, 免费下载, 免费体验试用版本的 JAVA应用。 这些试用版本分为功能性 限制, 时间限制, 次数限制等多种方式。 功能性限制有碍用户的体验, 已经渐渐退出 试用舞台, 市场上多为时间和次数的限制。 当用户对试用版本满意后, 可以花钱购入 正式版本。 因这些试用版本多是从 JAVA应用本身进行一些权限检查, 用户通过一些特殊的 操作, 如修改 JAVA应用的 RMS (Resource Management System, 资源管理系统)数据 库记录, 修改系统时间等方法, 可以达到绕开权限检查的目的, 从而无限制地使用试 用版, 导致 JAVA应用的试用版安全性不足, 影响应用厂商的利益。 发明内容 本发明提供了一种 JAVA应用的试用方法、 系统和装置, 以解决上述 JAVA应用 的试用版安全性不足的问题。 根据本发明的一个方面, 提供了一种 JAVA应用程序的试用方法, 包括: 移动终 端启动 JAVA应用程序, 其中, 该移动终端的 JAVA虚拟机中配置有试用认证模块; 试用认证模块确定 JAVA应用程序为试用版本;试用认证模块向网络侧设备认证 JAVA 应用程序是否可继续使用;如果是,继续运行该 JAVA应用程序;如果否,关闭该 JAVA 应用程序。 优选地, 移动终端启动 JAVA应用程序之前包括: 移动终端安装 JAVA应用程序 时, 根据 JAVA应用程序的属性信息确定 JAVA应用程序为试用版本, 调用试用认证 模块; 试用认证模块向网络侧设备确定是否允许安装 JAVA应用程序; 如果是, 允许 移动终端继续安装 JAVA应用程序; 如果否, 取消安装 JAVA应用程序。 优选地, 试用认证模块向网络侧设备确定是否允许安装 JAVA应用程序包括: 试 用认证模块收集 JAVA应用程序的试用信息, 将试用信息发送给网络侧设备; 其中, 试用信息包括: 移动终端的标识、 JAVA应用程序的标识和 JAVA应用程序的版本; 网 络侧设备根据试用信息判断 JAVA应用程序是否为首次在移动终端安装, 如果是, 登 记试用信息, 并通知试用认证模块允许安装 JAVA应用程序; 如果否, 通知试用认证 模块不允许安装 JAVA应用程序。 优选地, 试用认证模块向网络侧设备认证 JAVA应用程序是否可继续使用包括: 试用认证模块将试用信息发送给网络侧设备; 网络侧设备根据试用信息获取 JAVA应 用程序当前的试用值, 根据试用值认证 JAVA应用程序是否可继续使用, 并将认证结 果通知试用认证模块。 优选地, 网络侧设备根据试用值认证 JAVA应用程序是否可继续使用包括: 网络 侧设备根据试用信息获取 JAVA应用程序对应的试用规则, 按照对应的试用规则修改 JAVA应用程序的试用值, 得到当前试用值; 当前试用值满足试用门限时, 网络侧设备 确定 JAVA应用程序可继续使用;当前试用值不满足试用门限时,网络侧设备确定 JAVA 应用程序不可继续使用。 根据本发明的另一方面,提供了一种移动终端,包括:启动模块,设置为启动 JAVA 应用程序; 试用认证模块, 配置在移动终端的 JAVA虚拟机中, 设置为确定启动模块 启动的 JAVA应用程序为试用版本, 向网络侧设备认证 JAVA应用程序是否可继续使 用; 试用模块, 设置为试用认证模块的认证结果为是时, 运行 JAVA应用程序; 试用 认证模块的认证结果为否时, 关闭 JAVA应用程序。 优选地, 移动终端还包括: 安装与调用模块, 设置为安装 JAVA应用程序, 根据TECHNICAL FIELD The present invention relates to the field of mobile terminals and the field of JAVA technologies, and in particular to a trial method, system and apparatus for a JAVA application. BACKGROUND OF THE INVENTION In recent years, with the development of mobile terminals such as mobile phones, PDAs (Personal Digital Assistants), and the transformation of people-oriented services, more and more terminals are preset with many JAVA applications at the factory. These applications enhance the consumer experience and become a big selling point for the terminal. Usually, the preset mode of the JAVA application is negotiated by the terminal manufacturer and the application vendor to pay the application manufacturer license purchase fee or other purchase method for the application preset. In order to better promote the application, the application vendor allows free presets, free downloads, and free trial versions of the JAVA application. These trial versions are divided into functional restrictions, time limits, and number limits. Functional limitations hinder the user's experience and have gradually withdrawn from the trial arena. The market is often limited by time and number of times. When the user is satisfied with the trial version, they can pay for the official version. Because these trial versions mostly perform some permission checks from the JAVA application itself, the user can achieve some circumvention through some special operations, such as modifying the RMS (Resource Management System) database record of the JAVA application, modifying the system time and other methods. The purpose of the permission check, so that the trial version is used without restriction, leads to insufficient security of the trial version of the JAVA application, affecting the interests of the application vendor. SUMMARY OF THE INVENTION The present invention provides a trial method, system and apparatus for a JAVA application to solve the problem of insufficient security of a trial version of the aforementioned JAVA application. According to an aspect of the present invention, a method for testing a JAVA application is provided, including: a mobile terminal launching a JAVA application, wherein a JAVA virtual machine of the mobile terminal is configured with a trial authentication module; and a trial authentication module determines a JAVA application As a trial version; the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used; if so, continues to run the JAVA application; if not, close the JAVA application. Preferably, before the mobile terminal starts the JAVA application, the mobile terminal determines that the JAVA application is a trial version according to the attribute information of the JAVA application, and invokes the trial authentication module; and the trial authentication module determines whether to allow the network side device. Install the JAVA application; if yes, allow the mobile terminal to continue installing the JAVA application; if not, cancel the installation of the JAVA application. Preferably, the trial authentication module determines whether to allow the installation of the JAVA application to the network side device, including: the trial authentication module collects the trial information of the JAVA application, and sends the trial information to the network side device; wherein the trial information includes: the identifier of the mobile terminal, The identifier of the JAVA application and the version of the JAVA application; the network side device determines whether the JAVA application is installed on the mobile terminal for the first time based on the trial information, and if so, registers the trial information, and notifies the trial authentication module to allow the JAVA application to be installed; , notify the trial authentication module does not allow the installation of JAVA applications. Preferably, the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used, including: the trial authentication module sends the trial information to the network side device; the network side device obtains the current trial value of the JAVA application according to the trial information, according to the trial value. Whether the authentication JAVA application can continue to be used, and the certification result is notified to the trial authentication module. Preferably, the network side device verifies whether the JAVA application can continue to be used according to the trial value. The network side device obtains the trial rule corresponding to the JAVA application according to the trial information, and modifies the trial value of the JAVA application according to the corresponding trial rule, and obtains the current trial. Value; When the current trial value meets the trial threshold, the network side device determines that the JAVA application can continue to be used; when the current trial value does not satisfy the trial threshold, the network side device determines that the JAVA application cannot be used continuously. According to another aspect of the present invention, a mobile terminal is provided, including: a startup module configured to start a JAVA application; a trial authentication module configured in a JAVA virtual machine of the mobile terminal, configured to determine a JAVA application initiated by the startup module The program is a trial version, and the JAVA application can be authenticated to the network side device; the trial module, when the authentication result of the trial authentication module is set to Yes, the JAVA application is run; when the authentication result of the trial authentication module is No, the JAVA is closed. application. Preferably, the mobile terminal further comprises: an installation and calling module, configured to install the JAVA application, according to
JAVA应用程序的属性信息确定 JAVA应用程序为试用版本, 调用试用认证模块; 试用 认证模块包括: 安装确定单元, 设置为根据安装与调用模块的调用, 向网络侧设备确 定是否允许安装 JAVA应用程序; 如果是, 通知安装与调用模块继续安装 JAVA应用 程序; 如果否, 取消安装 JAVA应用程序。 优选地, 安装确定单元包括: 信息发送子单元, 设置为收集 JAVA应用程序的试 用信息, 将试用信息发送给网络侧设备, 以使网络侧设备确定是否允许安装 JAVA应 用程序; 其中, 试用信息包括: 移动终端的标识、 JAVA应用程序的标识和 JAVA应用 程序的版本。 根据本发明的又一方面, 提供了一种网络侧设备, 包括: 接收模块, 设置为接收 移动终端发送的 JAVA应用程序的试用信息; 该试用信息包括: 该移动终端的标识、 该 JAVA应用程序的标识和该 JAVA应用程序的版本; 认证与通知模块, 设置为根据 试用信息认证 JAVA应用程序是否可继续使用, 并将认证结果通知该移动终端。 优选地, 认证与通知模块包括: 判断单元, 设置为根据试用信息判断 JAVA应用 程序是否为首次在移动终端安装; 通知单元, 设置为判断单元的判断结果为是时, 登 记试用信息, 并通知移动终端允许安装 JAVA应用程序; 判断单元的判断结果为否时, 通知移动终端不允许安装 JAVA应用程序。 优选地,认证与通知模块还包括:试用值获取单元,设置为根据试用信息获取 JAVA 应用程序当前的试用值; 认证单元, 设置为根据试用值获取单元获取的试用值认证 JAVA应用程序是否可继续使用, 并将认证结果通知移动终端。 优选地, 试用值获取单元包括: 更新子单元, 设置为根据试用信息获取 JAVA应 用程序对应的试用规则, 按照对应的试用规则修改 JAVA应用程序的试用值, 得到当 前试用值; 认证单元包括: 第一认证子单元, 设置为当前试用值满足试用门限时, 确 定 JAVA应用程序可继续使用; 第二认证子单元, 设置为当前试用值不满足试用门限 时, 确定 JAVA应用程序不可继续使用。 根据本发明的再一方面, 提供了一种 JAVA应用程序的试用系统, 包括上述移动 终端和上述网络侧设备。 通过本发明, 采用在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认 证模块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决了 JAVA应用的试用版安全性不足的问题,进而达到了维护应用厂商利益的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例 1的 JAVA应用程序的试用方法的流程图; 图 2是根据本发明实施例 2的基于 JAVA技术的 JAVA应用程序的试用方法示意 图; 图 3是根据本发明实施例 3的在手机终端进行试用版的 JAVA应用程序安装的方 法流程图; 图 4是根据本发明实施例 3的在手机终端进行试用版的 JAVA应用程序的使用方 法流程图; 图 5是根据本发明实施例 4的 JAVA应用程序的试用系统的结构框图; 图 6是根据本发明实施例 5的移动终端的结构框图; 图 7是根据本发明实施例 5的移动终端的具体结构框图; 以及 图 8是根据本发明实施例 6的网络侧设备的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例在移动终端的虚拟机内部设置一个试用认证模块, 并开放该试用认 证模块的标准 API (Application Program Interface, 应用编程接口)给应用程序开发商, 应用程序开发商在应用程序里使用该标准 API对 JAVA应用程序进行强制认证。 基于 此, 本发明实施例提供了一种 JAVA应用程序的试用方法、 系统和装置, 该装置包括 移动终端和网络侧设备。 实施例 1 图 1示出了根据本发明实施例的一种 JAVA应用程序的试用方法的流程图, 该方 法包括以下步骤: 步骤 S102, 移动终端启动 JAVA应用程序, 其中, 该移动终端的 JAVA虚拟机中 配置有试用认证模块; 优选地, 在步骤 S102之前, 该方法还包括安装上述 JAVA应用程序的步骤, 为了 能够对试用版本的 JAVA应用程序的运行进行限制, 本发明实施例的移动终端安装 JAVA应用程序时, 进行如下处理: 移动终端安装 JAVA应用程序时,根据 JAVA应用程序的属性信息确定 JAVA应用 程序为试用版本, 将调用试用认证模块; 该试用认证模块向网络侧设备确定是否允许 安装该 JAVA应用程序; 如果是, 允许该移动终端继续安装 JAVA应用程序; 如果否, 取消安装该 JAVA应用程序。 其中, 网络侧设备可以为内容提供商使用的设备, 试用认证模块可以从 JAVA应 用程序的属性信息中获取该网络侧设备的网络地址, 试用认证模块和网络侧设备之间 进行无线空中通信, 例如, 以超文本链接方式向该网络侧设备发送试用信息。 该试用认证模块取消安装该 JAVA应用程序时, 可以同时通知用户安装被取消的 原因, 例如: 试用版的 JAVA应用程序仅可以在该移动终端上安装一次, 下次安装需 要购买正版的 JAVA应用程序等。 该试用认证模块向网络侧设备确定是否允许安装该 JAVA应用程序具体包括: 试 用认证模块收集该 JAVA应用程序的试用信息, 将该试用信息发送给网络侧设备; 其 中, 试用信息包括: 移动终端的标识 (例如: 手机号码)、 JAVA应用程序的标识 (例 如: 应用名称) 和 JAVA应用程序的版本; 或者还可以包括应用厂商等信息; 网络侧 设备根据试用信息判断 JAVA应用程序是否为首次在移动终端安装, 如果是, 登记试 用信息, 并通知试用认证模块允许安装该 JAVA应用程序; 如果否, 通知试用认证模 块不允许安装该 JAVA应用程序。 步骤 S104, 试用认证模块确定上述 JAVA应用程序为试用版本; 在确定 JAVA应用程序是否为试用版本时, 可以参考该 JAVA应用程序的属性信 息进行确定。 步骤 S106,试用认证模块向网络侧设备认证上述 JAVA应用程序是否可继续使用; 如果是, 执行步骤 S108; 如果否, 执行步骤 S110; 例如, 试用认证模块将 JAVA应用程序的试用信息发送给网络侧设备, 请求对该 JAVA应用程序的权限进行认证; 网络侧设备根据该试用信息获取该 JAVA应用程序当 前的试用值, 根据试用值认证该 JAVA应用程序是否可继续使用, 并将认证结果通知 试用认证模块。 其中, 试用值可以用时间表示, 也可以用次数表示, 其获取方式如下: 网络侧设备根据试用信息获取该 JAVA应用程序对应的试用规则, 按照对应的试用规 则修改该 JAVA应用程序的试用值, 得到当前试用值; 当前试用值满足试用门限时, 网络侧设备确定该 JAVA应用程序可继续使用; 当前试用值不满足试用门限时, 该网 络侧设备确定该 JAVA应用程序不可继续使用。 步骤 SI 08, 继续运行上述 JAVA应用程序; 步骤 S110, 关闭上述 JAVA应用程序。 网络侧设备返回认证结果给试用认证模块, 当试用超限时, 网络侧设备通知试用 认证模块无法继续使用, 试用认证模块关闭上述 JAVA应用程序, 同时, 还可以告知 用户充值方法或正式版下载地址等信息。 本发明实施例在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认证模 块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决 了 JAVA应用的试用版安全性不足的问题, 维护了应用厂商的利益。 实施例 2 如图 2所示, 是本发明实施例描述的基于 JAVA技术的 JAVA应用程序的试用方 法示意图, 该方法包括如下步骤: The attribute information of the JAVA application determines that the JAVA application is a trial version, and invokes the trial authentication module. The trial authentication module includes: an installation determining unit configured to determine, according to the call of the installation and calling module, whether to allow the installation of the JAVA application to the network side device; If yes, notify the install and call module to continue installing the JAVA application; if not, cancel the installation of the JAVA application. Preferably, the installation determining unit comprises: an information sending subunit, configured to collect trial information of the JAVA application, and send the trial information to the network side device, so that the network side device determines whether to allow the JAVA to be installed. The program includes: the identifier of the mobile terminal, the identifier of the JAVA application, and the version of the JAVA application. According to still another aspect of the present invention, a network side device is provided, including: a receiving module, configured to receive trial information of a JAVA application sent by a mobile terminal; the trial information includes: an identifier of the mobile terminal, the JAVA application The identifier and the version of the JAVA application; the authentication and notification module is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the mobile terminal of the authentication result. Preferably, the authentication and notification module includes: a determining unit configured to determine whether the JAVA application is installed on the mobile terminal for the first time according to the trial information; and the notification unit, when the determination result of the determining unit is YES, registering the trial information, and notifying the mobile The terminal allows the installation of the JAVA application; when the judgment unit determines that the result is no, the mobile terminal is notified that the JAVA application is not allowed to be installed. Preferably, the authentication and notification module further includes: a trial value obtaining unit configured to acquire a current trial value of the JAVA application according to the trial information; and an authentication unit configured to authenticate whether the JAVA application can continue according to the trial value obtained by the trial value obtaining unit Use, and notify the mobile terminal of the authentication result. Preferably, the trial value obtaining unit comprises: an update subunit, configured to obtain a trial rule corresponding to the JAVA application according to the trial information, modify the trial value of the JAVA application according to the corresponding trial rule, and obtain a current trial value; the authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold. The second authentication subunit, when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used. According to still another aspect of the present invention, a trial system for a JAVA application is provided, including the above mobile terminal and the network side device. Through the invention, when the trial version of the JAVA application is run, the authority of the application is authenticated by the trial authentication module inside the virtual machine, and the authentication failure problem caused by some external modification is avoided, and the trial version of the JAVA application is solved. The problem of insufficient security has reached the effect of maintaining the interests of application vendors. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a flowchart of a trial method of a JAVA application according to Embodiment 1 of the present invention; 2 is a schematic diagram of a trial method of a JAVA application-based JAVA application according to Embodiment 2 of the present invention; FIG. 3 is a flowchart of a method for installing a trial version of a JAVA application on a mobile terminal according to Embodiment 3 of the present invention; FIG. 5 is a structural block diagram of a trial system of a JAVA application program according to Embodiment 4 of the present invention; FIG. 6 is a flowchart of a method for using a JAVA application program for a trial version in a mobile phone terminal according to Embodiment 3 of the present invention; Figure 7 is a block diagram showing the structure of a mobile terminal according to Embodiment 5 of the present invention; and Figure 8 is a block diagram showing the structure of a network side device according to Embodiment 6 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In the embodiment of the present invention, a trial authentication module is set inside the virtual machine of the mobile terminal, and a standard API (Application Program Interface) of the trial authentication module is opened to the application developer, and the application developer uses the application in the application. This standard API enforces authentication for JAVA applications. Based on this, an embodiment of the present invention provides a trial method, system, and device for a JAVA application, where the device includes a mobile terminal and a network side device. Embodiment 1 FIG. 1 is a flowchart of a trial method of a JAVA application according to an embodiment of the present invention. The method includes the following steps: Step S102: A mobile terminal starts a JAVA application, where the mobile terminal JAVA virtual A trial authentication module is configured in the machine; preferably, before the step S102, the method further includes the step of installing the JAVA application, in order to limit the operation of the trial version of the JAVA application, the mobile terminal installation of the embodiment of the present invention When using a JAVA application, proceed as follows: When the mobile terminal installs the JAVA application, determining the JAVA application as the trial version according to the attribute information of the JAVA application, the trial authentication module is invoked; the trial authentication module determines whether the JAVA application is allowed to be installed to the network side device; if yes, allows The mobile terminal continues to install the JAVA application; if not, the installation of the JAVA application is cancelled. The network side device may be a device used by the content provider, and the trial authentication module may obtain the network address of the network side device from the attribute information of the JAVA application, and perform wireless air communication between the authentication module and the network side device, for example, Sending trial information to the network side device in a hypertext link. When the trial authentication module cancels the installation of the JAVA application, the user can be notified of the reason why the installation is cancelled. For example, the trial version of the JAVA application can be installed only once on the mobile terminal, and the next installation requires the purchase of a genuine JAVA application. Wait. The trial authentication module determines whether to allow the installation of the JAVA application to the network side device, and specifically includes: the trial authentication module collects the trial information of the JAVA application, and sends the trial information to the network side device; wherein, the trial information includes: Identification (for example: mobile phone number), identification of JAVA application (for example: application name) and version of JAVA application; or may include information such as application vendor; network side device determines whether JAVA application is mobile for the first time based on trial information The terminal is installed, if yes, the trial information is registered, and the trial authentication module is notified to allow the JAVA application to be installed; if not, the trial authentication module is not allowed to install the JAVA application. Step S104, the trial authentication module determines that the JAVA application is a trial version. When determining whether the JAVA application is a trial version, the authentication information may be determined by referring to the attribute information of the JAVA application. Step S106, the trial authentication module authenticates to the network side device whether the JAVA application can continue to be used; if yes, step S108 is performed; if no, step S110 is performed; for example, the trial authentication module sends the trial information of the JAVA application to the network side. The device requests to authenticate the authority of the JAVA application; the network side device acquires the current trial value of the JAVA application according to the trial information, and verifies whether the JAVA application can continue to be used according to the trial value, and notifies the authentication result to the trial authentication. Module. The trial value may be expressed in time or in number of times, and the obtaining manner is as follows: The network side device acquires the trial rule corresponding to the JAVA application according to the trial information, and modifies the trial value of the JAVA application according to the corresponding trial rule. The current trial value is obtained; when the current trial value meets the trial threshold, the network side device determines that the JAVA application can continue to be used; when the current trial value does not satisfy the trial threshold, the network side device determines that the JAVA application cannot be used continuously. Step SI 08, continue to run the above JAVA application; Step S110, close the JAVA application. The network side device returns the authentication result to the trial authentication module. When the trial exceeds the limit, the network side device notifies the trial authentication module that the authentication module cannot be used continuously. The trial authentication module closes the JAVA application, and at the same time, can also inform the user of the recharge method or the official version download address. information. When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application. The problem of insufficient sex maintains the interests of application vendors. Embodiment 2 As shown in FIG. 2, it is a schematic diagram of a trial method of a JAVA application-based JAVA application described in the embodiment of the present invention, and the method includes the following steps:
( 1 ) 安装 JAVA应用程序时, JAVA虚拟机判定 JAVA应用程序是否为试用版; (1) When installing the JAVA application, the JAVA virtual machine determines whether the JAVA application is a trial version;
(2) 通过内置于 JAVA虚拟机的试用认证模块收集 JAVA应用程序的试用信息; 其中, 试用信息包括: 移动终端的标识(例如: 手机号码)、 JAVA应用程序的标识(例 如: 应用名称) 和 JAVA应用程序的版本; 或者还可以包括应用厂商等信息; (2) Collecting trial information of the JAVA application through the trial authentication module built in the JAVA virtual machine; wherein the trial information includes: the identifier of the mobile terminal (for example: mobile phone number), the identifier of the JAVA application (for example: application name), and The version of the JAVA application; or may include information such as the application vendor;
(3 )试用认证模块和内容提供商之间进行无线空中通信,在数据库服务器中登记 该 JAVA应用程序的试用信息; (3) performing wireless air communication between the trial authentication module and the content provider, and registering the trial information of the JAVA application in the database server;
(4)运行试用版的 JAVA应用程序时, 该应用通过扩展的试用认证模块 API强制 进行认证; ( 5 )试用认证模块和内容提供商之间进行无线空中通信,在数据库服务器中查询 该用户登记的试用信息, 并按照试用方式 (按次或按时间) 修改试用值; (4) When running the trial version of the JAVA application, the application is forced to authenticate through the extended trial authentication module API; (5) wireless air communication between the trial authentication module and the content provider, and querying the user registration in the database server Trial information, and modify the trial value according to the trial method (by time or by time);
(6) 内容提供商返回认证信息(例如, 是否可以继续使用、 还可以使用几次或者 还可以使用多长时间等信息) 给试用认证模块, 当试用超限时, 内容提供商通知试用 认证模块无法继续使用, 告知用户充值方法或正式版下载地址。 本发明实施例在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认证模 块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决 了 JAVA应用的试用版安全性不足的问题, 维护了应用厂商的利益。 实施例 3 如图 3所示, 为在手机终端进行试用版的 JAVA应用程序安装的方法流程图, 该 过程包括如下步骤: 步骤 S302, 用户安装试用版 JAVA应用程序; 步骤 S304, 安装时发现 JAD(Java Application Descriptor Java, 应用描述文件)里带 有 trial://属性,判定为试用版应用,调度试用认证模块收集手机和应用的信息(即 JAVA 应用程序的试用信息), 如手机号码, 应用名字, 应用厂商, 应用版本等信息; 步骤 S306 , 试用认证模块根据 trial://属性所指定的 URL ( Uniform Resource(6) The content provider returns the authentication information (for example, whether it can continue to be used, how many times it can be used, or how long it can be used) to the trial authentication module. When the trial exceeds the limit, the content provider notifies the trial authentication module that it cannot Continue to use, inform the user of the recharge method or the official version of the download address. When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application. The problem of insufficient sex maintains the interests of application vendors. Embodiment 3 As shown in FIG. 3, a flowchart of a method for installing a trial version of a JAVA application on a mobile phone terminal, the process includes the following steps: Step S302, the user installs a trial version of the JAVA application; Step S304, discovering JAD during installation (Java Application Descriptor Java, application description file) with trial:// attribute, judged as trial version application, dispatch trial authentication module to collect mobile phone and application information (ie JAVA application trial information), such as mobile phone number, application name , application vendor, application version, etc.; step S306, trial authentication module according to the URL specified by the trial:// attribute (Uniform Resource
Locator, 统一资源定位符), 将试用信息发送给内容提供商的服务器, 例如网络服务 器; 步骤 S308, 在内容提供商数据服务器中查询相关试用信息, 如果为首次试用, 则 登记该试用信息, 具体的试用方式由内容提供商指定; 步骤 S310, 内容提供商服务器向试用认证模块返回登记详情(例如, 是否允许该 手机安装该 JAVA应用程序); 步骤 S312, 试用认证模块记录登记信息, 并通告用户安装成功与否。 以上步骤主要描述安装正常进行的情况, 如发生异常情况, 则本过程结束。 如图 4所示, 在手机终端进行试用版的 JAVA应用程序的使用方法流程图, 包括 如下步骤 (注意以下步骤主要描述正常使用情况, 如发生异常情况, 本过程结束): 步骤 S402, 用户运行试用版 JAVA应用程序; 步骤 S404, 该应用运行时会调用试用认证模块的 API, 获取该 JAVA应用程序的 试用信息, 例如上述的手机和应用的信息, 如手机号码, 应用名字, 应用厂商, 应用 版本等信息; 步骤 S406, 试用认证模块根据 trial://属性所指定的 url, 将试用信息发送给内容服 务提供商的 web服务器; 步骤 S408, 在内容提供商数据服务器中查询相关试用信息, 并根据具体的试用方 式修改试用信息, 如次数, 时间等; 步骤 S410, 内容提供商向试用认证模块返回试用详情; 步骤 S412, 试用认证模块通告用户能否继续使用, 如不能继续使用, 则通告用户 充值或正式版下载途径, 如能继续使用, 则通知用户剩余的试用限制。 本发明实施例在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认证模 块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决 了 JAVA应用的试用版安全性不足的问题, 维护了应用厂商的利益。 实施例 4 图 5示出了根据本发明实施例的一种 JAVA应用程序的试用系统的结构框图, 该 系统包括移动终端 52和网络侧设备 54, 其中, 移动终端 52包括: 启动模块 522, 设置为启动 JAVA应用程序; 试用认证模块 524,与启动模块 522相连,配置在移动终端 52的 JAVA虚拟机中, 设置为确定启动模块 522启动的 JAVA应用程序为试用版本, 向网络侧设备 54认证 JAVA应用程序是否可继续使用; 试用模块 526, 与试用认证模块 524相连, 设置为试用认证模块 524的认证结果 为是时, 运行 JAVA应用程序; 试用认证模块 524的认证结果为否时, 关闭 JAVA应 用程序; 网络侧设备 54包括: 认证与通知模块 542,设置为认证 JAVA应用程序是否可继续使用,并将认证结果 通知试用认证模块。 优选地, 移动终端 52还包括: 安装与调用模块, 设置为安装 JAVA应用程序, 根 据 JAVA应用程序的属性信息确定 JAVA应用程序为试用版本,调用试用认证模块 524; 相应地, 试用认证模块 524包括: 安装确定单元, 设置为根据安装与调用模块的 调用, 向网络侧设备 54确定是否允许安装 JAVA应用程序; 如果是, 通知上述安装与 调用模块继续安装该 JAVA应用程序; 如果否, 取消安装该 JAVA应用程序。 优选地, 安装确定单元包括: 信息发送子单元, 设置为收集 JAVA应用程序的试 用信息, 将试用信息发送给网络侧设备 54; 其中, 试用信息包括: 移动终端 52的标 识、 JAVA应用程序的标识和 JAVA应用程序的版本; 基于此, 认证与通知模块 542包 括: 判断单元, 设置为根据试用信息判断 JAVA应用程序是否为首次在移动终端 52安 装; 通知单元, 设置为判断单元的判断结果为是时, 登记试用信息, 并通知试用认证 模块 524允许安装 JAVA应用程序; 判断单元的判断结果为否时, 通知试用认证模块 524不允许安装 JAVA应用程序。 具体实现时, 为了使网络侧便于对启动的 JAVA应用程序进行认证, 试用认证模 块 524包括: 试用信息发送单元, 设置为将试用信息发送给网络侧设备 54; 相应地, 认证与通知模块 542包括: 试用值获取单元, 设置为根据试用信息获取 JAVA应用程 序当前的试用值; 认证单元, 设置为根据试用值获取单元获取的试用值认证 JAVA应 用程序是否可继续使用, 并将认证结果通知试用认证模块 524。 其中, 试用值可以用时间表示, 也可以用次数表示。 基于此, 试用值获取单元包 括: 更新子单元, 设置为根据试用信息获取 JAVA应用程序对应的试用规则, 按照对 应的试用规则修改 JAVA应用程序的试用值, 得到当前试用值; 认证单元包括: 第一认证子单元, 设置为当前试用值满足试用门限时, 确定 JAVA 应用程序可继续使用; 第二认证子单元, 设置为当前试用值不满足试用门限时, 确定 JAVA应用程序不可继续使用。 本实施例的网络侧设备可以为内容提供商的网络服务器。 本发明实施例在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认证模 块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决 了 JAVA应用的试用版安全性不足的问题, 维护了应用厂商的利益。 实施例 5 图 6示出了根据本发明实施例的一种移动终端的结构框图, 该移动终端包括: 启动模块 62, 设置为启动 JAVA应用程序; 试用认证模块 64, 与启动模块 62相连, 配置在移动终端的 JAVA虚拟机中, 设置 为确定启动模块启动的 JAVA应用程序为试用版本, 向网络侧设备认证 JAVA应用程 序是否可继续使用; 试用模块 66, 与试用认证模块 64相连, 设置为试用认证模块 64的认证结果为是 时, 运行 JAVA应用程序; 试用认证模块 64的认证结果为否时, 关闭 JAVA应用程序。 如图 7所示, 该移动终端除包括图 6所示模块外, 还包括: 安装与调用模块 60, 设置为安装 JAVA应用程序,根据 JAVA应用程序的属性信息确定 JAVA应用程序为试 用版本, 调用试用认证模块 64; 试用认证模块 64包括: 安装确定单元, 设置为根据安装与调用模块 60的调用, 向网络侧设备确定是否允许安装 JAVA应用程序; 如果是, 通知安装与调用模块 60继 续安装 JAVA应用程序; 如果否, 取消安装 JAVA应用程序。 其中, 安装确定单元包括: 信息发送子单元, 设置为收集 JAVA应用程序的试用 信息, 将试用信息发送给网络侧设备, 以使网络侧设备确定是否允许安装 JAVA应用 程序; 其中, 试用信息包括: 移动终端的标识、 JAVA应用程序的标识和 JAVA应用程 序的版本。 本实施例的网络侧设备可以为内容提供商的网络服务器。 本发明实施例在运行试用版的 JAVA应用程序时, 通过虚拟机内部的试用认证模 块强制对该应用程序的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决 了 JAVA应用的试用版安全性不足的问题, 维护了应用厂商的利益。 实施例 6 图 8示出了根据本发明实施例的一种网络侧设备的结构框图,该网络侧设备包括: 接收模块 82, 设置为接收移动终端发送的 JAVA应用程序的试用信息; 试用信息 包括: 移动终端的标识、 JAVA应用程序的标识和 JAVA应用程序的版本; 认证与通知模块 84,与接收模块 82相连,设置为根据试用信息认证 JAVA应用程 序是否可继续使用, 并将认证结果通知上述移动终端。 在安装 JAVA应用程序时, 考虑到用户可能重复安装 JAVA应用程序, 为了增强 安全性, 本实施例的认证与通知模块 84 包括: 判断单元, 设置为根据试用信息判断 JAVA应用程序是否为首次在移动终端安装;通知单元,设置为判断单元的判断结果为 是时, 登记试用信息, 并通知移动终端允许安装 JAVA应用程序; 判断单元的判断结 果为否时, 通知移动终端不允许安装 JAVA应用程序。 为了便于网络侧设备对 JAVA应用程序的使用权限进行控制, 优选地, 认证与通 知模块 84包括: 试用值获取单元, 设置为根据试用信息获取 JAVA应用程序当前的试 用值; 认证单元, 设置为根据试用值获取单元获取的试用值认证 JAVA应用程序是否 可继续使用, 并将认证结果通知移动终端。 其中, 试用值获取单元包括: 更新子单元, 设置为根据试用信息获取 JAVA应用 程序对应的试用规则, 按照对应的试用规则修改 JAVA应用程序的试用值, 得到当前 试用值; 上述认证单元包括: 第一认证子单元, 设置为当前试用值满足试用门限时, 确定 JAVA应用程序可继续使用; 第二认证子单元, 设置为当前试用值不满足试用门 限时, 确定 JAVA应用程序不可继续使用。 本发明实施例在运行试用版的 JAVA应用程序时, 网络侧设备通过对该应用程序 的权限进行认证, 避免一些外部修改导致的认证失效问题, 解决了 JAVA应用的试用 版安全性不足的问题, 维护了应用厂商的利益。 以上实施例通过强制对移动终端运行的 JAVA应用程序进行认证, 有效地避免了 由于用户自行修改 JAVA应用程序的相关信息导致其无限制地使用试用版本的 JAVA 应用程序, 进而增强了试用版本的 JAVA应用程序使用的安全性, 维护了应用厂商的 利益。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 Locator, Uniform Resource Locator, sending the trial information to the server of the content provider, such as a web server; Step S308, querying the content provider data server for relevant trial information, if it is the first trial, registering the trial information, specifically The trial mode is specified by the content provider; in step S310, the content provider server returns the registration details to the trial authentication module (for example, whether the mobile phone is allowed to install the JAVA application); Step S312, the trial authentication module records the registration information, and notifies the user Successful installation or not. The above steps mainly describe the normal operation of the installation. If an abnormal situation occurs, the process ends. As shown in FIG. 4, a flow chart of a method for using a trial version of a JAVA application on a mobile terminal includes the following steps (note that the following steps mainly describe normal use, such as an abnormal situation, the process ends): Step S402, the user runs a trial version of the JAVA application; Step S404, the application runtime invokes the API of the trial authentication module to obtain trial information of the JAVA application, such as the above mobile phone and application information, such as mobile phone number, application name, application vendor, application a version and the like information; step S406, the trial authentication module sends the trial information to the web server of the content service provider according to the url specified by the trial:// attribute; step S408, querying the relevant trial information in the content provider data server, and Modify the trial information according to the specific trial method, such as the number of times, time, etc.; Step S410, the content provider returns the trial details to the trial authentication module. Step S412, the trial authentication module notifies the user whether to continue to use, and if the user cannot continue to use, the user is notified of the recharge or the official version of the download path, and if the user continues to use, the user is notified. The remaining trial limits. When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application. The problem of insufficient sex maintains the interests of application vendors. Embodiment 4 FIG. 5 is a structural block diagram of a trial system of a JAVA application program, which includes a mobile terminal 52 and a network side device 54. The mobile terminal 52 includes: a startup module 522, which is set in accordance with an embodiment of the present invention. In order to start the JAVA application, the trial authentication module 524 is connected to the startup module 522 and configured in the JAVA virtual machine of the mobile terminal 52, and is configured to determine that the JAVA application launched by the startup module 522 is a trial version, and authenticate the JAVA to the network side device 54. Whether the application can continue to be used; the trial module 526 is connected to the trial authentication module 524, and when the authentication result of the trial authentication module 524 is set to Yes, the JAVA application is run; when the authentication result of the trial authentication module 524 is negative, the JAVA application is closed. The network side device 54 includes: an authentication and notification module 542 configured to authenticate whether the JAVA application can continue to be used, and notify the trial authentication module of the authentication result. Preferably, the mobile terminal 52 further includes: an installation and calling module, configured to install the JAVA application, determine the JAVA application as a trial version according to the attribute information of the JAVA application, and invoke the trial authentication module 524; accordingly, the trial authentication module 524 includes : an installation determining unit, configured to determine, according to the call of the installation and calling module, whether to allow the JAVA application to be installed to the network side device 54; if yes, notifying the above installation and calling module to continue installing the JAVA application; if not, canceling the installation JAVA application. Preferably, the installation determining unit includes: an information sending subunit, configured to collect trial information of the JAVA application, and send the trial information to the network side device 54; wherein the trial information includes: an identifier of the mobile terminal 52, and an identifier of the JAVA application And the version of the JAVA application; based on this, the authentication and notification module 542 package The judging unit is configured to determine whether the JAVA application is installed on the mobile terminal 52 for the first time according to the trial information; and the notification unit, when the judgment result of the judging unit is set to YES, register the trial information, and notify the trial authentication module 524 to allow JAVA to be installed. When the judgment result of the judgment unit is negative, the trial authentication module 524 is notified that the JAVA application is not allowed to be installed. In a specific implementation, in order to facilitate the network side to authenticate the activated JAVA application, the trial authentication module 524 includes: a trial information sending unit, configured to send the trial information to the network side device 54; correspondingly, the authentication and notification module 542 includes : The trial value obtaining unit is configured to obtain the current trial value of the JAVA application according to the trial information; the authentication unit is configured to authenticate whether the JAVA application can continue to be used according to the trial value obtained by the trial value obtaining unit, and notify the trial authentication of the authentication result. Module 524. Among them, the trial value can be expressed in time or in number of times. Based on this, the trial value obtaining unit includes: an update subunit, configured to obtain a trial rule corresponding to the JAVA application according to the trial information, modify the trial value of the JAVA application according to the corresponding trial rule, and obtain the current trial value; the authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold. The second authentication subunit, when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used. The network side device of this embodiment may be a network server of a content provider. When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application. The problem of insufficient sex maintains the interests of application vendors. Embodiment 5 FIG. 6 is a structural block diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal includes: a startup module 62 configured to start a JAVA application; a trial authentication module 64 connected to the startup module 62, configured In the JAVA virtual machine of the mobile terminal, the JAVA application set to determine the startup module is a trial version, and the network side device is authenticated whether the JAVA application can continue to be used; the trial module 66 is connected to the trial authentication module 64, and is set to trial. When the authentication result of the authentication module 64 is YES, the JAVA application is run; when the authentication result of the trial authentication module 64 is NO, the JAVA application is closed. As shown in FIG. 7, the mobile terminal includes: an installation and invocation module 60, configured to install a JAVA application, and determine a JAVA application as a trial version according to the attribute information of the JAVA application, as shown in FIG. The trial authentication module 64 includes: an installation determining unit, configured to: determine, according to the call of the installation and calling module 60, whether to allow the installation of the JAVA application to the network side device; if yes, notify the installation and invocation module 60 to continue to install the JAVA Application; if no, cancel the installation of the JAVA application. The installation determining unit includes: an information sending subunit, configured to collect the trial information of the JAVA application, and send the trial information to the network side device, so that the network side device determines whether to allow the JAVA application to be installed; wherein, the trial information includes: The identity of the mobile terminal, the identity of the JAVA application, and the version of the JAVA application. The network side device of this embodiment may be a network server of a content provider. When running the trial version of the JAVA application, the embodiment of the present invention enforces the authority of the application through the trial authentication module inside the virtual machine, avoids the authentication failure caused by some external modification, and solves the trial version security of the JAVA application. The problem of insufficient sex maintains the interests of application vendors. Embodiment 6 FIG. 8 is a structural block diagram of a network side device according to an embodiment of the present invention. The network side device includes: a receiving module 82, configured to receive trial information of a JAVA application sent by the mobile terminal; The identifier of the mobile terminal, the identifier of the JAVA application, and the version of the JAVA application; the authentication and notification module 84 is connected to the receiving module 82, and is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the above result of the authentication result. Mobile terminal. When installing the JAVA application, considering that the user may repeatedly install the JAVA application, in order to enhance security, the authentication and notification module 84 of the embodiment includes: a determining unit, configured to determine whether the JAVA application is the first time based on the trial information. The terminal installation; the notification unit is configured to register the trial information when the judgment result of the determination unit is YES, and notify the mobile terminal to permit the installation of the JAVA application; and when the determination result of the determination unit is no, notify the mobile terminal that the JAVA application is not allowed to be installed. In order to facilitate the network side device to control the usage right of the JAVA application, preferably, the authentication and notification module 84 includes: a trial value obtaining unit, configured to obtain a current test of the JAVA application according to the trial information. The authentication unit is configured to authenticate whether the JAVA application can continue to be used according to the trial value obtained by the trial value acquisition unit, and notify the mobile terminal of the authentication result. The trial value obtaining unit includes: an update subunit, configured to acquire a trial rule corresponding to the JAVA application according to the trial information, modify a trial value of the JAVA application according to the corresponding trial rule, and obtain a current trial value; the foregoing authentication unit includes: An authentication subunit is set to ensure that the JAVA application can continue to be used when the current trial value satisfies the trial threshold. The second authentication subunit, when the current trial value does not satisfy the trial threshold, determines that the JAVA application cannot be used. In the embodiment of the present invention, when the trial version of the JAVA application is run, the network side device authenticates the authority of the application, avoids the authentication failure caused by some external modification, and solves the problem that the trial version of the JAVA application is insufficient in security. Maintain the interests of application vendors. The above embodiment enforces the authentication of the JAVA application running on the mobile terminal, thereby effectively avoiding the unrestricted use of the trial version of the JAVA application due to the user's own modification of the JAVA application related information, thereby enhancing the trial version of JAVA. The security used by the application maintains the interests of the application vendor. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种 JAVA应用程序的试用方法, 包括: 1. A trial method for a JAVA application, including:
移动终端启动 JAVA应用程序, 其中, 所述移动终端的 JAVA虚拟机中配 置有试用认证模块;  The mobile terminal starts a JAVA application, wherein the JAVA virtual machine of the mobile terminal is configured with a trial authentication module;
所述试用认证模块确定所述 JAVA应用程序为试用版本;  The trial authentication module determines that the JAVA application is a trial version;
所述试用认证模块向网络侧设备认证所述 JAVA应用程序是否可继续使 用; 如果是, 继续运行所述 JAVA应用程序; 如果否, 关闭所述 JAVA应用程 序。  The trial authentication module authenticates to the network side device whether the JAVA application can continue to be used; if so, continues to run the JAVA application; if not, closes the JAVA application.
2. 根据权利要求 1所述的方法, 其中, 所述移动终端启动 JAVA应用程序之前, 所述方法包括: 2. The method according to claim 1, wherein before the mobile terminal starts the JAVA application, the method includes:
所述移动终端安装所述 JAVA应用程序时, 根据所述 JAVA应用程序的属 性信息确定所述 JAVA应用程序为试用版本, 调用所述试用认证模块;  When the mobile terminal installs the JAVA application, determining, according to the attribute information of the JAVA application, that the JAVA application is a trial version, and calling the trial authentication module;
所述试用认证模块向网络侧设备确定是否允许安装所述 JAVA应用程序; 如果是, 允许所述移动终端继续安装所述 JAVA应用程序; 如果否, 取消安装 所述 JAVA应用程序。  The trial authentication module determines whether the JAVA application is allowed to be installed to the network side device; if yes, allows the mobile terminal to continue to install the JAVA application; if not, cancels the installation of the JAVA application.
3. 根据权利要求 2所述的方法, 其中, 所述试用认证模块向网络侧设备确定是否 允许安装所述 JAVA应用程序包括: The method according to claim 2, wherein the trial authentication module determines, by the network side device, whether to allow the JAVA application to be installed, includes:
所述试用认证模块收集所述 JAVA应用程序的试用信息, 将所述试用信息 发送给所述网络侧设备; 其中, 所述试用信息包括: 所述移动终端的标识、 所 述 JAVA应用程序的标识和所述 JAVA应用程序的版本;  The trial authentication module collects the trial information of the JAVA application, and sends the trial information to the network side device. The trial information includes: an identifier of the mobile terminal, and an identifier of the JAVA application. And the version of the JAVA application;
所述网络侧设备根据所述试用信息判断所述 JAVA应用程序是否为首次在 所述移动终端安装, 如果是, 登记所述试用信息, 并通知所述试用认证模块允 许安装所述 JAVA应用程序; 如果否, 通知所述试用认证模块不允许安装所述 JAVA应用程序。  The network side device determines, according to the trial information, whether the JAVA application is installed for the first time in the mobile terminal, and if so, registers the trial information, and notifies the trial authentication module to permit installation of the JAVA application; If not, the trial authentication module is notified that the JAVA application is not allowed to be installed.
4. 根据权利要求 3所述的方法, 其中, 所述试用认证模块向网络侧设备认证所述 JAVA应用程序是否可继续使用包括: 所述试用认证模块将所述试用信息发送给所述网络侧设备; 所述网络侧设备根据所述试用信息获取所述 JAVA应用程序当前的试用 值, 根据所述试用值认证所述 JAVA应用程序是否可继续使用, 并将认证结果 通知所述试用认证模块。 The method according to claim 3, wherein the verifying that the trial authentication module authenticates the JAVA application to the network side device comprises: the trial authentication module transmitting the trial information to the network side device; The network side device acquires a current trial value of the JAVA application according to the trial information, and verifies whether the JAVA application can continue to be used according to the trial value, and notifies the trial authentication module of the authentication result.
5. 根据权利要求 4所述的方法, 其中, 所述网络侧设备根据所述试用值认证所述 JAVA应用程序是否可继续使用包括: The method according to claim 4, wherein the determining, by the network side device, whether the JAVA application can continue to be used according to the trial value comprises:
所述网络侧设备根据所述试用信息获取所述 JAVA应用程序对应的试用规 贝 U, 按照对应的试用规则修改所述 JAVA应用程序的试用值, 得到当前试用值; 所述当前试用值满足试用门限时, 所述网络侧设备确定所述 JAVA应用程 序可继续使用;  The network side device acquires the trial rule U corresponding to the JAVA application according to the trial information, and modifies the trial value of the JAVA application according to the corresponding trial rule to obtain a current trial value; the current trial value satisfies the trial At the threshold, the network side device determines that the JAVA application can continue to be used;
所述当前试用值不满足试用门限时, 所述网络侧设备确定所述 JAVA应用 程序不可继续使用。  When the current trial value does not satisfy the trial threshold, the network side device determines that the JAVA application cannot be used continuously.
6. 一种移动终端, 包括: 6. A mobile terminal, comprising:
启动模块, 设置为启动 JAVA应用程序;  Start the module, set to start the JAVA application;
试用认证模块, 配置在所述移动终端的 JAVA虚拟机中, 设置为确定所述 启动模块启动的所述 JAVA应用程序为试用版本,向网络侧设备认证所述 JAVA 应用程序是否可继续使用;  a trial authentication module, configured in the JAVA virtual machine of the mobile terminal, configured to determine that the JAVA application initiated by the startup module is a trial version, and authenticate to the network side device whether the JAVA application can continue to be used;
试用模块, 设置为所述试用认证模块的认证结果为是时, 运行所述 JAVA 应用程序; 所述试用认证模块的认证结果为否时, 关闭所述 JAVA应用程序。  The trial module is configured to: when the authentication result of the trial authentication module is YES, run the JAVA application; when the authentication result of the trial authentication module is no, the JAVA application is closed.
7. 根据权利要求 6所述的移动终端, 其中, 7. The mobile terminal according to claim 6, wherein
所述移动终端还包括: 安装与调用模块, 设置为安装所述 JAVA应用程序, 根据所述 JAVA应用程序的属性信息确定所述 JAVA应用程序为试用版本, 调 用所述试用认证模块;  The mobile terminal further includes: an installation and a calling module, configured to install the JAVA application, determining, according to the attribute information of the JAVA application, that the JAVA application is a trial version, and calling the trial authentication module;
所述试用认证模块包括: 安装确定单元, 设置为根据所述安装与调用模块 的调用, 向所述网络侧设备确定是否允许安装所述 JAVA应用程序; 如果是, 通知所述安装与调用模块继续安装所述 JAVA应用程序; 如果否, 取消安装所 述 JAVA应用程序。  The trial authentication module includes: an installation determining unit, configured to determine, according to the calling of the installation and calling module, whether to allow the JAVA application to be installed to the network side device; if yes, notify the installation and calling module to continue Install the JAVA application; if no, cancel the installation of the JAVA application.
8. 根据权利要求 7所述的移动终端, 其中, 8. The mobile terminal according to claim 7, wherein
所述安装确定单元包括: 信息发送子单元, 设置为收集所述 JAVA应用程 序的试用信息, 将所述试用信息发送给所述网络侧设备, 以使所述网络侧设备 确定是否允许安装所述 JAVA应用程序; 其中, 所述试用信息包括: 所述移动 终端的标识、 所述 JAVA应用程序的标识和所述 JAVA应用程序的版本。 The installation determining unit includes: an information sending subunit, configured to collect trial information of the JAVA application, and send the trial information to the network side device, so that the network side device Determining whether to allow the JAVA application to be installed; wherein the trial information comprises: an identifier of the mobile terminal, an identifier of the JAVA application, and a version of the JAVA application.
9. 一种网络侧设备, 包括: 9. A network side device, comprising:
接收模块, 设置为接收移动终端发送的 JAVA应用程序的试用信息; 其中, 所述试用信息包括: 所述移动终端的标识、 所述 JAVA应用程序的标识和所述 JAVA应用程序的版本;  a receiving module, configured to receive trial information of a JAVA application sent by the mobile terminal, where the trial information includes: an identifier of the mobile terminal, an identifier of the JAVA application, and a version of the JAVA application;
认证与通知模块, 设置为根据所述试用信息认证所述 JAVA应用程序是否 可继续使用, 并将认证结果通知所述移动终端。  The authentication and notification module is configured to authenticate whether the JAVA application can continue to be used according to the trial information, and notify the mobile terminal of the authentication result.
10. 根据权利要求 9所述的网络侧设备, 其中, 所述认证与通知模块包括: The network side device according to claim 9, wherein the authentication and notification module comprises:
判断单元, 设置为根据所述试用信息判断所述 JAVA应用程序是否为首次 在所述移动终端安装;  a determining unit, configured to determine, according to the trial information, whether the JAVA application is installed for the first time in the mobile terminal;
通知单元, 设置为所述判断单元的判断结果为是时, 登记所述试用信息, 并通知所述移动终端允许安装所述 JAVA应用程序; 所述判断单元的判断结果 为否时, 通知所述移动终端不允许安装所述 JAVA应用程序。  a notification unit, configured to: when the determination result of the determining unit is YES, register the trial information, and notify the mobile terminal to permit installation of the JAVA application; and when the determining result of the determining unit is negative, notify the The mobile terminal does not allow the installation of the JAVA application.
11. 根据权利要求 9所述的网络侧设备, 其中, 所述认证与通知模块还包括: The network side device according to claim 9, wherein the authentication and notification module further comprises:
试用值获取单元, 设置为根据所述试用信息获取所述 JAVA应用程序当前 的试用值;  a trial value obtaining unit, configured to acquire a current trial value of the JAVA application according to the trial information;
认证单元, 设置为根据所述试用值获取单元获取的所述试用值认证所述 JAVA应用程序是否可继续使用, 并将认证结果通知所述移动终端。  The authentication unit is configured to authenticate whether the JAVA application can continue to be used according to the trial value obtained by the trial value obtaining unit, and notify the mobile terminal of the authentication result.
12. 根据权利要求 11所述的网络侧设备, 其中, 12. The network side device according to claim 11, wherein
所述试用值获取单元包括: 更新子单元, 设置为根据所述试用信息获取所 述 JAVA应用程序对应的试用规则, 按照对应的试用规则修改所述 JAVA应用 程序的试用值, 得到当前试用值;  The trial value obtaining unit includes: an update subunit, configured to acquire a trial rule corresponding to the JAVA application according to the trial information, modify a trial value of the JAVA application according to a corresponding trial rule, and obtain a current trial value;
所述认证单元包括: 第一认证子单元, 设置为所述当前试用值满足试用门 限时, 确定所述 JAVA应用程序可继续使用; 第二认证子单元, 设置为所述当 前试用值不满足试用门限时, 确定所述 JAVA应用程序不可继续使用。  The authentication unit includes: a first authentication subunit, configured to determine that the JAVA application can continue to be used when the current trial value meets a trial threshold; and the second authentication subunit is set to not use the current trial value for the trial At the threshold, it is determined that the JAVA application cannot be used anymore.
13. 一种 JAVA应用程序的试用系统, 包括权利要求 6至 8任一项权利要求所述的 移动终端和权利要求 9至 12任一项权利要求所述的网络侧设备。 A trial system of a JAVA application, comprising the mobile terminal according to any one of claims 6 to 8 and the network side device according to any one of claims 9 to 12.
PCT/CN2011/080706 2010-10-13 2011-10-12 Trial method, system and device for java applications WO2012048645A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105061060A CN101980232A (en) 2010-10-13 2010-10-13 Method, system and device for trying JAVA application program
CN201010506106.0 2010-10-13

Publications (1)

Publication Number Publication Date
WO2012048645A1 true WO2012048645A1 (en) 2012-04-19

Family

ID=43600734

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080706 WO2012048645A1 (en) 2010-10-13 2011-10-12 Trial method, system and device for java applications

Country Status (2)

Country Link
CN (1) CN101980232A (en)
WO (1) WO2012048645A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980232A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Method, system and device for trying JAVA application program
CN102841809B (en) * 2011-06-22 2016-06-01 联想(北京)有限公司 Information processing method and device, mode switching method and terminal unit
US8914790B2 (en) * 2012-01-11 2014-12-16 Microsoft Corporation Contextual solicitation in a starter application
CN104077157B (en) * 2013-03-29 2018-10-12 联想(北京)有限公司 Using trial method and device
CN104461623A (en) * 2014-12-01 2015-03-25 百度在线网络技术(北京)有限公司 Method and device for running application program
CN113127815A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Anti-cracking method and device
WO2021136216A1 (en) * 2019-12-31 2021-07-08 华为技术有限公司 Anti-cracking method and apparatus
CN111314475B (en) * 2020-02-21 2021-05-04 北京紫光展锐通信技术有限公司 Session creation method and related equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416542A (en) * 2000-01-18 2003-05-07 西门子公司 Method for using software products that are provided through network
US20080098465A1 (en) * 2006-10-19 2008-04-24 Sun Microsystems, Inc. Method and system for managing execution of an application module
CN101980232A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Method, system and device for trying JAVA application program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466783C (en) * 2006-04-06 2009-03-04 华为技术有限公司 Method and device for managing multi-users of mobile terminal
CN101383828B (en) * 2008-10-13 2011-12-21 中国电信股份有限公司 JavaScript object calling method, system and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1416542A (en) * 2000-01-18 2003-05-07 西门子公司 Method for using software products that are provided through network
US20080098465A1 (en) * 2006-10-19 2008-04-24 Sun Microsystems, Inc. Method and system for managing execution of an application module
CN101980232A (en) * 2010-10-13 2011-02-23 中兴通讯股份有限公司 Method, system and device for trying JAVA application program

Also Published As

Publication number Publication date
CN101980232A (en) 2011-02-23

Similar Documents

Publication Publication Date Title
WO2012048645A1 (en) Trial method, system and device for java applications
JP4795636B2 (en) Method for processing and distributing applications by server, and system for processing and distributing applications
US11489678B2 (en) Platform attestation and registration for servers
US10097993B2 (en) Method and apparatus for remote authentication
JP7326471B2 (en) Bluetooth scanning method and electronic device
US9137664B2 (en) Application logging interface for a mobile device
WO2017071207A1 (en) Application installation method, corresponding apparatus, and application installation system
RU2391796C2 (en) Limited access to functional sets of mobile terminal
JP4888816B2 (en) Apparatus, program, method, and system for service provisioning using short-range wireless communication
TWI281107B (en) Using permissions to allocate device resources to an application
US20120311675A1 (en) Apparatus and method for generating and installing application for device in application development system
WO2015070655A1 (en) Broadcast interception method and apparatus of intelligent device
EP2887607A1 (en) Migration of assets of a trusted execution environment
WO2011153751A1 (en) Software upgrading method and apparatus
US9344406B2 (en) Information processing device, information processing method, and computer program product
KR20130114651A (en) Trustworthy device claims as a service
KR100660641B1 (en) Secure booting method for mobile terminal and mobile terminal for adopting the same
WO2023124420A1 (en) Application signature methods and system, transaction terminal and service platform
WO2018032573A1 (en) Data processing method, apparatus, server and terminal
KR20130097563A (en) Appatus and method for processing a application of mobile terminal device
US8880701B2 (en) System and method for supporting of network service
CN110247877B (en) Management method and terminal for offline management instruction
CN106599619A (en) Verification method and device
JP3863122B2 (en) Wireless terminal, communication control program, and communication control method
KR101740734B1 (en) Application service system and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11832042

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11832042

Country of ref document: EP

Kind code of ref document: A1