WO2008080319A1 - Procédé de gestion de licence web et système associé, terminal client et serveur de licence - Google Patents

Procédé de gestion de licence web et système associé, terminal client et serveur de licence Download PDF

Info

Publication number
WO2008080319A1
WO2008080319A1 PCT/CN2007/070848 CN2007070848W WO2008080319A1 WO 2008080319 A1 WO2008080319 A1 WO 2008080319A1 CN 2007070848 W CN2007070848 W CN 2007070848W WO 2008080319 A1 WO2008080319 A1 WO 2008080319A1
Authority
WO
WIPO (PCT)
Prior art keywords
license
client
validity
protection time
server
Prior art date
Application number
PCT/CN2007/070848
Other languages
English (en)
French (fr)
Inventor
Yajun Zhao
Yongzheng Xie
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2008080319A1 publication Critical patent/WO2008080319A1/zh

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]

Definitions

  • the present invention relates to network license technology, and more particularly to a network license management method, system, and license server and client. Background of the invention
  • the network license management system generally includes a license authorization server (the cartridge is called a license server) and a license use client (a cartridge is called a license client).
  • Figure 1 is a schematic diagram of an existing network license management architecture, such as As shown in Figure 1, the license server and license client are connected through a network.
  • the license server is responsible for managing network license files, client license entitlements, and license recycling.
  • the license client requests a license from the license server and applies it. Among them, the license client is divided into a non-persistent license client and a persistent license client.
  • the validity of the license is managed by the license validity detection mechanism between the non-persistent license client and the license server, where validity is time validity.
  • the validity of the so-called license is based on the license client used online by the network; for the durable license client, the validity of the license applied by the persistent license client from the license server is not valid.
  • the control of the sexual detection mechanism is only relevant to the validity of the license itself.
  • node lock license authorization a license can only be used by a specific computer node on the network or by a special user; floating or concurrent use authorization mode, a certain number of licenses can be preset Use by any computer node on the network without limiting the location and physical characteristics of the node.
  • the currently used network license management methods mainly include: The license server centrally manages the license of the network license client. The license client requests a license from the license server, and the license server performs license authorization according to the preset policy. If the license client application satisfies the condition, the license is sent to the license client; otherwise, the license is rejected. The client's request.
  • license-based authorization methods are basically considered from the perspective of the license allocation strategy, and the license use validity management problem after the license is allocated is not considered, that is, the license client is from the license server. After obtaining the license, there is no verification of the validity of the license and no active recycling mechanism.
  • the license validity management problem of the license process using the license process after the license client is successfully applied is not solved.
  • there may be abnormal conditions such as the license client device crashing.
  • the license since there is no license validity management, the license cannot be forcibly recovered, resulting in waste of license resources.
  • the telecommunication network has certain differences in the use of licenses from the general Internet technology (IT) field, and needs to consider more the continuity of the use of the device and the user experience. Therefore, the license client that needs to obtain the network license is licensed.
  • the validity of the certificate has special customization capabilities.
  • the license server also cannot flexibly schedule the license resources of the license clients within the network, that is, it does not have the function of reallocating license resources. Summary of the invention
  • Embodiments of the present invention provide a network license management method, which can implement effective management of licenses.
  • the embodiment of the present invention provides another network license management method, which can implement management of license validity.
  • the embodiment of the invention provides a network license management system, which can realize the effective management of the license.
  • Embodiments of the present invention provide a license server, which can implement management of license validity.
  • the embodiment of the invention provides a license client, which can implement management of license validity.
  • a network license management method comprising:
  • the license server receives a license request from the license client
  • the license server reclaims the license assigned to the license client when the heartbeat detection signal sent by the license client applying for the license is not received within the valid detection protection time.
  • a network license management method comprising:
  • the license client applies for a license from the license server
  • the license client sends a heartbeat detection signal to the license server during the validity detection protection time.
  • a network license management system comprising: a license server, and at least one license client;
  • a license server for receiving a request for a license from a license client, and after authorizing the license, performing heartbeat detection with the license client applying for the license within the validity detection protection time established by itself, and When the heartbeat detection fails, the license server recycles the license assigned to the license client;
  • a license client that requests a license request from the license server, performs heartbeat detection with the license server after obtaining the license and validity check protection time, and releases the requested license when the heartbeat test fails certificate.
  • a license server includes: a license authorization module, a timer module, a first detection module, and a license processing module;
  • a license authorization module configured to receive a request for a license from a license client, and perform a license authorization process, and send the license to the license client and the validity detection protection time determined by the license client when the license is authorized; Timing module timing;
  • a timing module configured to detect a protection time start timing according to a validity determined by the license server itself
  • a first detecting module configured to perform heartbeat detection between the license client applying for the license after the timing module starts timing, and within the duration of the validity detection protection time, if the license is received from the license The heartbeat detection signal of the client is restarted by the timing module; if the duration of the validity detection protection time is exceeded and the heartbeat detection signal from the license client is not received, the license processing module recovers the license;
  • a license processing module that reclaims licenses assigned to the license client.
  • a license client, the license client includes: a license application module, a second detection module, where
  • a license application module configured to send a request for a license to the license server
  • a second detecting module configured to receive a license and validity detection protection time allocated from the license server, perform heartbeat detection with the license server, and follow a preset heartbeat during the validity detection protection time The detection cycle sends a heartbeat detection signal to the license server.
  • the validity detection protection time is determined in the license server; in the validity detection protection time, the heartbeat detection is performed between the license server and the license client applying for the license, and When heartbeat detection fails, the license server reclaims the license assigned to the license client.
  • the embodiment of the present invention detects the validity of the license by detecting the heartbeat detection within the protection time. When the heartbeat test fails, the license is considered invalid, and the license is reclaimed in time, so that the license can be managed to ensure the reasonable use of the license resources.
  • Figure 1 is a schematic diagram of an existing network license management architecture
  • FIG. 2a is a flowchart of a method for network license management according to an embodiment of the present invention
  • FIG. 2b is a schematic diagram of a system configuration of a network license management according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a second embodiment of a method for implementing network license management by a system according to an embodiment of the present invention. Mode for carrying out the invention
  • the validity detection protection time is determined in the license server; during the validity detection protection time, the heartbeat detection is performed between the license server and the license client applying for the license, and the heartbeat detection fails.
  • the license server recycles points A license assigned to the license client.
  • FIG. 2a is a flowchart of a network license management method according to an embodiment of the present invention. As shown in FIG. 2a, the method includes the following steps:
  • Step 200 Determine the validity detection protection time in the license server.
  • the determination of the validity detection protection time may be statically set in the license server in advance, or may be determined through dynamic negotiation between the license server and the license client requesting the license.
  • the specific implementation of the two methods can be respectively described in the following embodiments of FIG. 3 and FIG. 4, and will not be described in detail herein.
  • the validity detection protection time can be set according to different license clients, that is, according to the characteristics of the user, for example, for the license client of the network telecommunication device, the validity detection The protection time can be relatively long. For the license client of the personal terminal device, the validity detection protection time can be relatively short. In this way, it effectively helps to ensure a reasonable allocation of effective time for different clients.
  • Step 201 During the validity detection protection time, the license server performs heartbeat detection with the client applying for the license, and when the heartbeat detection fails, the license server reclaims the license assigned to the license client.
  • the implementation of the heartbeat detection is well known to those skilled in the art.
  • the effectiveness of the license is detected by detecting the heartbeat detection within the protection time.
  • the license is considered invalid, and the license is reclaimed in time, so that the management of the license ensures the reasonable use of the license resources.
  • FIG. 2b is a schematic diagram of the composition of the network license management system according to the embodiment of the present invention, as shown in FIG. 2b.
  • the license server receives the request for a license from the license client, after authorizing the license,
  • the heartbeat detection is performed between the license client applying for the license within the validity detection protection time determined by itself, and when the heartbeat detection fails, the license server reclaims the license assigned to the license client.
  • the license server includes: a license authorization module, a timing module, a first detection module, and a license processing module;
  • a license authorization module configured to receive a request for a license from a license client, and perform a license authorization process, and send the license to the license client and the validity detection protection time determined by the license client when the license is authorized; Timing module timing
  • a timing module configured to receive a timing notification, detect a protection time start timing according to a validity determined by the license server itself, and send a start detection notification to the first detection module; and a first detection module, configured to receive a start detection from the timing module Notifying that heartbeat detection is performed between the license client applying for the license, and within the duration of the validity detection protection time, if a heartbeat detection signal from the license client is received, a restart notification is sent to the timing module If the validity detection protection time is exceeded and the heartbeat detection signal from the license client is not received, a recovery notification is sent to the license processing module; the license processing module is configured to receive the recovery from the first detection module. Notify, recycle the license assigned to the license client.
  • the license processing module is further configured to receive a forced revocation license request from the outside, and reclaim the requested license.
  • the license client includes: a license application module, a second detection module, wherein a license application module is configured to send a request for a license to the license server; and a second detection module, configured to receive the license from the license License server assigned license and validity detection protection time, heartbeat detection with the license server, and valid During the sexual detection protection period, the heartbeat detection signal is sent to the license server according to the preset heartbeat detection period.
  • FIG. 3 is a schematic diagram of a first embodiment of a method for implementing network license management in a system provided by an embodiment of the present invention, as shown in FIG. 3, a license server and a license client A (license client A), a license The license client B (License Client B) and the license client C (license client C) are respectively connected through a network, and the dotted line indicates the heartbeat detection between the license client and the license server.
  • the determination of the validity detection protection time is performed by a static setting method.
  • different validity detection protection times are preset for different license clients, for example: For license client A, the validity detection protection time is 1 hour, for license client B, validity The detection protection time is 3 hours. For license client C, the validity detection protection time is 24 hours.
  • License Client A Take License Client A as an example, that is, after obtaining the license from the license server, License Client A can successfully complete at least one handshake with the license server every hour, that is, after heartbeat detection, license client A can Continue to hold the obtained license; if the handshake fails, the license server reclaims the license assigned to license client A, while license client A releases the possessed license.
  • the specific management method is as follows:
  • the license client A requests a license from the license server, assuming that the license server accepts the application request, issues a license to the license client A, and simultaneously sends the validity check protection time corresponding to the license client A. Give the license client A.
  • the license server starts the timer according to the duration of the effective protection time corresponding to the license client A, and receives the heartbeat detection signal of the client, that is, the handshake signal, within the time duration of the timer, and detects the assignment to the license client.
  • the validity of the license of the terminal A within the duration of the validity detection protection time, if the handshake signal from the license client A is received, the timer is restarted; if the timer expires, the validity check is guaranteed.
  • the license server recycles the license granted to license client A.
  • the license client A detects the guard time according to the obtained validity, starts the detection timer, and initiates heartbeat detection to the license server according to the heartbeat detection period within the timing period of the detection timer.
  • the heartbeat detection period initiated by the license client to the license server may be preset, for example, set to 1/3 of the validity detection protection time, that is, within a validity detection protection time, the license client Three heartbeat handshakes are initiated, and as long as one successful one of the three handshakes, it indicates that the license client can continue to have the applied license during the next validity detection protection time. For example: License client A's validity detection protection time is 1 hour, then license client A can initiate a heartbeat handshake to the license server every 20 minutes to detect the validity of the license.
  • the license server and the license client jointly manage the validity of the license. And when the license expires, the license is reclaimed in time. After the license of the license client A is recovered by the license server, the license can be applied for by other license clients. Of course, the license client A is also included. . This ensures the reasonable use of the license resources.
  • FIG. 4 is a schematic diagram of a second embodiment of a method for implementing network license management in a system according to an embodiment of the present invention.
  • a method for dynamically checking the establishment of a validity check protection time is adopted.
  • a license server is connected to a license client through the network as an example.
  • the specific management method is as follows:
  • Step 400 The license client applies for a license to the license server, and sends its own validity detection protection time negotiation information to the license server.
  • the validity detection protection time negotiation information is 3 hours.
  • the license client can detect the duration of the protection time according to its own requirements.
  • Step 401 Negotiate the validity detection protection time between the license server and the license client.
  • the license server first determines whether there is a license that meets the conditions, and the specific implementation is completely consistent with the existing method, and details are not described herein again.
  • the license server determines whether it has a license that meets the conditions, that is, after the license client successfully applies for the license, it determines whether the license client's validity check protection time negotiation information is reasonable.
  • the method of judging may be that a reasonableness determination strategy is pre-set in the license server, for example, for different license clients, the maximum allowable validity detection protection time is preset in advance, so that if the validity of the license client request is The detection of the protection time negotiation information does not exceed the duration of the maximum validity detection protection time, and it is reasonable to determine the validity detection protection time negotiation information; in addition, the duration of the allowed minimum and maximum validity detection protection time may be set in advance, so that If the validity detection protection time negotiation information requested by the license client is within the range of the minimum and maximum validity detection protection time, it is reasonable to determine the validity detection protection time negotiation information. It should be noted that the above description only illustrates the setting of two rationality determination strategies, and does not limit the application of the method of the present invention.
  • the license server determines that it has a license that satisfies the condition and the license client requests validity check protection time negotiation information is reasonable, then the license server assigns a license to the license client and returns the validity of the license. Check the validity of the protection time to detect the protection time to confirm the valid information.
  • the license server determines that the validity check protection time negotiation information of the license client request is unreasonable, returning the rejection license request to the license client, and determining the reasonableness of the license server in advance
  • the reference validity detection protection time in the policy is sent to the license client;
  • the license client determines whether to initiate a new application based on the receipt of the reference validity detection protection time.
  • the decision method is as follows:
  • the negotiation policy is set in advance on the license client. If the reference validity check protection time satisfies the negotiation policy, the license client initiates a new message to the server.
  • the license application is sent to the license server with reference to the validity check protection time.
  • the negotiation policy may be the duration of the protection time for which the maximum permitted validity of the license is set for different license clients, or may be the duration of the minimum and maximum negotiated validity detection protection time set in advance.
  • the negotiation policy is the maximum duration of the allowed negotiation validity detection protection time. Then, as long as the received reference validity detection protection time does not exceed the maximum negotiation validity detection protection time, it is determined to initiate a new negotiation information transmission. Give the license server.
  • the above negotiation process can be repeated multiple times until the negotiation policy of the license client is satisfied, or the license client abandons the negotiation.
  • Step 402 After the dynamic negotiation of the validity check protection time between the license server and the client is successfully completed, both parties enter the validity management of the license use.
  • the above is a method for detecting the validity of a license by using a validity detection protection time mechanism in the embodiment of the present invention.
  • the embodiment of the present invention further supports a third party through a license server to allocate to a license client.
  • the license is forcibly reclaimed, and the license server notifies the license client to force release of the license.
  • This management method initiated by the license server and forced by the license client, improves the flexibility of network license allocation management.
  • a mandatory reclaimed license can be assigned to other license clients. This not only solves the defect that the device of the license client is unable to return the license due to system abnormality such as the license client device crashing, but also provides a flexible management mechanism for the network license.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc., which are made within the spirit and principles of the present invention, should be included. It is within the scope of the invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

网络许可证管理方法、 系统及许可证服务器和客户端 技术领域
本发明涉及网络许可证技术, 尤指一种网络许可证管理方法、 系统 及许可证服务器和客户端。 发明背景
目前, 基于许可证(License )的管理系统和管理方法很多, 总体 上可以分为两类, 一类是单机许可证管理; 一类是网络服务器许可证 (筒称为网络许可证) 管理。
网络许可证管理系统, 一般包括许可证授权服务器(筒称为许可 证服务器) 和许可证使用客户端 (筒称为许可证客户端), 图 1是现 有网络许可证管理架构的示意图, 如图 1所示, 许可证服务器和许可 证客户端通过网络(Network ) 连接。 许可证服务器负责管理网络许 可证文件、 客户端许可证授权及许可证回收等。 许可证客户端向许可 证服务器申请许可证并应用。 其中, 许可证客户端分为非持久许可证 客户端和持久许可证客户端。
对于非持久许可证客户端,非持久许可证客户端与许可证服务器 之间通过许可证有效性检测机制管理许可证的使用有效性,这里的有 效性是指时间有效性。所谓许可证的使用有效性是基于网络在线使用 的许可证客户端而言的; 对于持久许可证客户端, 持久许可证客户端 从许可证服务器申请到的许可证的有效性不受许可证有效性检测机 制的控制, 只与许可证本身的有效性相关。
在网络许可证管理中,对于非持久许可证客户端与许可证服务器 之间的管理, 常见的网络许可证管理方法有节点锁许可证授权、 浮动 许可证授权和并发使用许可证授权等。其中,在节点锁许可证授权中, 指定一个许可证只能被网络上的一个特定计算机节点使用或被一个 特殊用户使用; 浮动或者并发使用授权方式, 是预先设定一定数量的 许可证可以被网络上的任何计算机节点使用,不限制节点的位置和物 理特征。 结合图 1 , 目前常用的网络许可证管理方法主要包括: 许可 证服务器集中管理网络许可证客户端的许可证。许可证客户端向许可 证服务器申请许可证, 许可证服务器根据预设策略进行许可证授权, 如果许可证客户端申请满足条件, 则发送许可证给该许可证客户端; 否则, 拒绝该许可证客户端的请求。
目前, 虽然基于许可证的授权方式很多, 但基本都是从许可证的 分配策略角度考虑,而未考虑分配许可证后的许可证使用有效性管理 问题, 即在许可证客户端从许可证服务器获取许可证后, 没有对许可 证的有效性进行检测, 也没有主动回收许可证机制。
从上述现有网络许可证管理方法可见,没有解决许可证客户端在 申请许可证成功后, 使用许可证过程的许可证有效性管理问题。 许可 证在使用过程中, 可能存在异常情况如许可证客户端设备死机, 现有 管理方法中由于不存在许可证有效性管理, 因此不能对许可证进行强 制回收, 造成了许可证资源的浪费。
另外, 电信网络在许可证使用上与一般互联网技术(IT )领域存 在一定的差异性,需要更多考虑设备使用的延续性和用户体验,因此, 需要获得网络许可证的许可证客户端在许可证的有效性使用上具有 特殊定制能力。许可证服务器也不能对网络内的许可证客户端的许可 证资源进行灵活调度, 即不具备许可证资源重新分配的功能。 发明内容
本发明实施例提供一种网络许可证管理方法, 能够实现对许可证有 效性的管理。
本发明实施例提供另一种网络许可证管理方法, 能够实现对许可证 有效性的管理。
本发明实施例提供一种网络许可证管理系统, 能够实现对许可证有 效性的管理。
本发明实施例提供一种许可证服务器, 能够实现对许可证有效性的 管理。
本发明实施例提供一种许可证客户端, 能够实现对许可证有效性的 管理。
本发明实施例的技术方案具体是这样实现的:
一种网络许可证管理方法, 该方法包括:
许可证服务器接收许可证客户端的许可证申请;
确定有效性检测保护时间;
为许可证客户端分配许可证;
许可证服务器在所述有效检测保护时间内,未接收到申请到许可 证的许可证客户端发送的心跳检测信号时,回收分配给该许可证客户 端的许可证。
一种网络许可证管理方法, 该方法包括:
许可证客户端向许可证服务器申请许可证;
接收许可证服务器下发的许可证;
确定有效检测保护时间;
许可证客户端, 在所述有效性检测保护时间内, 向许可证服务器发 送心跳检测信号。 一种网络许可证管理系统, 该系统包括: 许可证服务器, 以及至少 一个许可证客户端;
许可证服务器, 用于接收来自许可证客户端的申请许可证请求, 授 权许可证后, 在自身建立的有效性检测保护时间内, 与申请到许可证 的许可证客户端之间进行心跳检测, 并在心跳检测失败时, 许可证服 务器回收分配给该许可证客户端的许可证;
许可证客户端, 用于向许可证服务器申请许可证请求, 在获得许 可证和有效性检测保护时间后, 与许可证服务器之间进行心跳检测, 并在心跳检测失败时, 释放申请到的许可证。
一种许可证服务器, 所述许可证服务器包括: 许可证授权模块、 计 时模块、 第一检测模块和许可证处理模块; 其中,
许可证授权模块, 用于接收来自许可证客户端的申请许可证请求, 并进行许可证授权处理, 在授权许可证时向许可证客户端发送给许可证 和自身确定的有效性检测保护时间; 由所述计时模块计时;
计时模块, 用于按照许可证服务器自身确定的有效性检测保护时 间启动计时;
第一检测模块, 用于在所述计时模块启动计时后, 与申请到许可证 的许可证客户端之间进行心跳检测, 在有效性检测保护时间的时长内, 如果收到来自所述许可证客户端的心跳检测信号, 由所述计时模块重新 启动计时; 如果超过有效性检测保护时间的时长且未收到来自所述许可 证客户端的心跳检测信号, 由所述许可证处理模块回收许可证;
许可证处理模块, 用于回收分配给该许可证客户端的许可证。 一种许可证客户端, 所述许可证客户端包括: 许可证申请模块、 第 二检测模块, 其中,
许可证申请模块, 用于向所述许可证服务器发送申请许可证请求; 第二检测模块, 用于接收到来自所述许可证服务器分配的许可证和 有效性检测保护时间, 与许可证服务器之间进行心跳检测, 并在有效 性检测保护时间内, 按照预设的心跳检测周期向许可证服务器发送心跳 检测信号。
由上述技术方案可见, 本发明实施例许可证服务器中确定有效性检 测保护时间; 在有效性检测保护时间内, 许可证服务器与申请到许可证 的许可证客户端之间进行心跳检测, 并在心跳检测失败时, 许可证服务 器回收分配给许可证客户端的许可证。 本发明实施例通过有效性检测保 护时间内的心跳检测, 检测出许可证的有效性。 在心跳检测失败时, 认 为许可证失效, 并及时收回许可证, 从而通过对许可证的管理, 保证了 许可证资源的合理使用。 附图简要说明
图 1是现有网络许可证管理架构的示意图;
图 2a是本发明实施例提供的网络许可证管理的方法流程图; 图 2b是本发明实施例提供的网络许可证管理的系统组成示意图; 图 3 ^^于本发明实施例提供的系统实现网络许可证管理的方法的 第一实施例的示意图;
图 4 ^^于本发明实施例提供的系统实现网络许可证管理的方法的 第二实施例的示意图。 实施本发明的方式
本发明实施例中, 在许可证服务器中确定有效性检测保护时间; 在有效性检测保护时间内,许可证服务器与申请到许可证的许可证客 户端之间进行心跳检测, 并在心跳检测失败时, 许可证服务器回收分 配给该许可证客户端的许可证。
为使本发明实施例的目的、 技术方案及优点更加清楚明白, 以下参 照附图, 对本发明实施例进一步详细说明。
图 2a是本发明实施例提供的网络许可证管理方法的流程图, 如图 2a所示, 该方法包括以下步骤:
步骤 200: 在许可证服务器中确定有效性检测保护时间。
本步骤中, 有效性检测保护时间的确定, 可以预先静态设置在许可 证服务器中, 也可以通过许可证服务器与请求许可证的许可证客户端之 间的动态协商确定。 两种方法的具体实现可分别参见下文图 3和图 4的 实施例描述, 这里不再详述。
在预先静态设置有效性检测保护时间的方法中, 有效性检测保护时 间可以根据不同的许可证客户端进行设置, 即根据用户特性进行设置, 比如对于网络电信设备的许可证客户端, 有效性检测保护时间可以比较 长, 对于个人终端设备的许可证客户端, 有效性检测保护时间可以比较 短等。 这样, 有效地帮保证了不同客户端的有效时间的合理分配。
步骤 201 : 在有效性检测保护时间内, 许可证服务器与申请到许可 证的客户端之间进行心跳检测, 并在心跳检测失败时, 许可证服务器回 收分配给该许可证客户端的许可证。
心跳检测的实现属于本领域技术人员公知技术,本步骤中强调的是, 通过有效性检测保护时间内的心跳检测, 检测出许可证的有效性。 在心 跳检测失败时, 认为许可证失效, 并及时收回许可证, 从而通过对许可 证的管理, 保证了许可证资源的合理使用。
针对本发明实施例提供的上述方法,本发明实施例还提供一种网 络许可证管理系统, 图 2b是本发明实施例提供的网络许可证管理系 统的组成示意图, 如图 2b所示, 该系统包括: 用于负责管理许可证 文件, 许可证授权和管理的许可证 务器, 以及一个或一个以上用于 请求并使用许可证的许可证客户端; 许可证服务器接收来自许可证客户 端的申请许可证请求,授权许可证后,在自身确定的有效性检测保护时 间内, 与申请到许可证的许可证客户端之间进行心跳检测, 并在心跳 检测失败时, 许可证服务器回收分配给该许可证客户端的许可证。
许可证服务器包括: 许可证授权模块、 计时模块、 第一检测模块和 许可证处理模块; 其中,
许可证授权模块, 用于接收来自许可证客户端的申请许可证请求, 并进行许可证授权处理, 在授权许可证时向许可证客户端发送给许可证 和自身确定的有效性检测保护时间; 通知计时模块计时;
计时模块, 用于接收到计时通知, 按照许可证服务器自身确定的有 效性检测保护时间启动计时, 并向第一检测模块发送开始检测通知; 第一检测模块, 用于接收来自计时模块的开始检测通知, 与申请到 许可证的许可证客户端之间进行心跳检测, 在有效性检测保护时间的时 长内, 如果收到来自所述许可证客户端的心跳检测信号, 则向计时模块 发送重新启动通知; 如果超过有效性检测保护时间的时长且未收到来自 所述许可证客户端的心跳检测信号, 向许可证处理模块发送回收通知; 许可证处理模块, 用于接收到来自第一检测模块的回收通知, 回 收分配给该许可证客户端的许可证。
所述许可证处理模块进一步用于, 用于接收来自外部的强制回收许 可证请求, 回收请求的许可证。
许可证客户端包括: 许可证申请模块、 第二检测模块, 其中, 许可证申请模块, 用于向所述许可证服务器发送申请许可证请求; 第二检测模块, 用于接收到来自所述许可证服务器分配的许可证和 有效性检测保护时间, 与许可证服务器之间进行心跳检测, 并在有效 性检测保护时间内, 按照预设的心跳检测周期向许可证服务器送心跳检 测信号。
图 3 ^^于本发明实施例提供的系统, 实现网络许可证管理的方法 的第一实施例的示意图, 如图 3所示, 许可证服务器与许可证客户端 A ( License Client A )、 许可证客户端 B ( License Client B )和许可证客户 端 C ( License Client C )之间分别通过网络连接, 点划线表示许可证客 户端与许可证服务器之间的心跳检测。
第一实施例中, 有效性检测保护时间的确定采用静态设置的方法。 假设在许可证服务器中, 针对不同许可证客户端预先设置不同的有效性 检测保护时间, 比如: 对于许可证客户端 A, 有效性检测保护时间为 1 小时, 对于许可证客户端 B, 有效性检测保护时间为 3小时, 对于许可 证客户端 C, 有效性检测保护时间为 24小时。 以许可证客户端 A为例, 也就是说, 从许可证服务器获取许可证后, 许可证客户端 A每 1小时与 许可证服务器成功完成至少一次握手即心跳检测后,许可证客户端 A才 能继续持有获得的许可证; 如果握手失败, 许可证服务器回收分配给许 可证客户端 A的许可证, 同时许可证客户端 A释放占有的许可证。
以许可证客户端 A申请许可证为例, 具体管理方法如下:
首先, 许可证客户端 A向许可证服务器申请许可证, 假设许可证服 务器接受申请请求, 向许可证客户端 A下发许可证, 并同时将许可证客 户端 A对应的有效性检测保护时间发送给许可证客户端 A。
之后,许可证服务器按照许可证客户端 A对应的有效保护时间的时 长, 启动计时定时器, 并在计时定时器的定时时长范围内接收客户端的 心跳检测信号即握手信号,检测分配给许可证客户端 A的许可证的有效 性, 在有效性检测保护时间的时长内, 如果收到来自许可证客户端 A的 握手信号, 则重新启动计时定时器; 如果计时定时器超过有效性检测保 护时间的时长, 则许可证服务器回收授权给许可证客户端 A的许可证。 同时, 许可证客户端 A根据获得的有效性检测保护时间, 启动检测 定时器, 并在检测定时器的定时周期内, 按照心跳检测周期向许可证服 务器发起心跳检测。 本发明实施例中, 许可证客户端向许可证服务器发 起的心跳检测周期可以预先设置, 比如设置为有效性检测保护时间的 1/3,即在一个有效性检测保护时间内,许可证客户端发起 3次心跳握手, 而且只要 3次握手中成功 1次, 就表明许可证客户端在下一个有效性检 测保护时间内可以继续拥有申请到的许可证。 例如: 许可证客户端 A的 有效性检测保护时间是 1小时, 那么, 许可证客户端 A可以每 20分钟 向许可证服务器发起一次心跳握手, 以对许可证的有效性进行检测。
可见, 本发明实施例中, 许可证服务器和许可证客户端共同完成了 对许可证的有效性的管理。 并在许可证失效时, 及时收回许可证, 在许 可证客户端 A的许可证被许可证服务器回收后,该许可证可以被其他许 可证客户端申请使用, 当然, 也包括许可证客户端 A。 从而保证了许可 证资源的合理使用。
图 4 于本发明实施例提供的系统, 实现网络许可证管理的方法 的第二实施例的示意图, 第二实施例中, 有效性检测保护时间的建立采 用动态协商的方法。 如图 4所示, 这里以一个许可证服务器通过网络连 接一个许可证客户端为例进行介绍, 具体管理方法如下:
步骤 400: 许可证客户端向许可证服务器申请许可证, 同时将自身 的有效性检测保护时间协商信息发送给许可证服务器。
本实施例中, 假设有效性检测保护时间协商信息为 3小时。 许可证 客户端可以按照自身需要要求有效性检测保护时间的时长。
步骤 401: 许可证服务器与许可证客户端之间协商有效性检测保护 时间。 本步骤中, 许可证服务器首先判断是否有满足条件的许可证, 具体 实现与现有方法完全一致, 这里不再赘述。
许可证服务器在判定自身存在满足条件的许可证后即许可证客户 端成功申请许可证后, 判断许可证客户端请求的有效性检测保护时间协 商信息是否合理。 判断的方法可以是, 在许可证服务器预先设置合理性 判定策略, 比如对于不同的许可证客户端, 预先设置允许的最大有效性 检测保护时间的时长, 这样, 如果许可证客户端请求的有效性检测保护 时间协商信息不超过该最大有效性检测保护时间的时长, 则判定有效性 检测保护时间协商信息是合理的; 另外, 也可以预先设置允许的最小和 最大有效性检测保护时间的时长, 这样, 如果许可证客户端请求的有效 性检测保护时间协商信息在该最小和最大有效性检测保护时间的范围 内, 则判定有效性检测保护时间协商信息是合理的。 需要说明的是, 以 上只是举例说明了两种合理性判定策略的设置, 并不限定本发明方法的 应用。
如果许可证服务器判定自身存在满足条件的许可证, 且许可证客户 端请求的有效性检测保护时间协商信息是合理的, 那么, 许可证服务器 给许可证客户端分配许可证, 并返回携带有效性检测保护时间的有效性 检测保护时间确认有效信息。
进一步地, 如果许可证服务器判定许可证客户端请求的有效性检测 保护时间协商信息是不合理的, 则向许可证客户端返回拒绝许可证请 求, 并同时将许可证服务器预先设置的合理性判定策略中的参考有效性 检测保护时间发送给许可证客户端;
许可证客户端根据接收到参考有效性检测保护时间, 决定是否发起 新的申请。 决定的方法为: 预先在许可证客户端设置协商策略, 如果参 考有效性检测保护时间满足协商策略, 则许可证客户端向服务器发起新 的许可证申请, 并将参考有效性检测保护时间发送给许可证服务器。 这 里, 协商策略可以是对于不同的许可证客户端, 预先设置的允许的最大 协商有效性检测保护时间的时长, 也可以是预先设置的允许的最小和最 大协商有效性检测保护时间的时长。 比如协商策略是允许的最大协商有 效性检测保护时间的时长, 那么, 只要接收到的参考有效性检测保护时 间的时长不超过最大协商有效性检测保护时间的时长, 则判定发起新的 协商信息发送给许可证服务器。
上述协商过程可以重复多次, 直到满足许可证客户端的协商策略, 或者许可证客户端放弃协商为止。
步骤 402: 许可证服务器与客户端之间成功完成有效性检测保护时 间的动态协商后, 双方进入对许可证使用的有效性管理。
本步骤的具体实现与图 3所示第一实施例中, 具体管理方法中许可 证服务器将有效性检测保护时间发送给许可证客户端之后的实现方法 完全一致, 这里不再赘述。
以上是本发明实施例通过有效性检测保护时间机制, 对许可证的有 效性进行检测的方法, 除此之外, 本发明实施例还支持第三方通过许可 证服务器, 对分配给许可证客户端的许可证进行强制回收, 许可证服务 器通知许可证客户端强制释放许可证。 这种由许可证服务器发起, 许可 证客户端配合的许可证强制回收的管理方法, 提高了网络许可证分配管 理的灵活性。
同样, 强制回收的许可证, 可以被分配给其他许可证客户端使用。 这样不但解决了许可证客户端所在设备因为系统异常如许可证客户端 设备死机, 而无法归还许可证的缺陷, 也为网络许可证提供了灵活的管 理机制。 以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围, 凡在本发明的精神和原则之内所做的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1.一种网络许可证管理方法, 其特征在于, 该方法包括: 许可证服务器接收许可证客户端的许可证申请;
确定有效性检测保护时间;
为许可证客户端分配许可证;
许可证服务器在所述有效检测保护时间内,未接收到申请到许可 证的许可证客户端发送的心跳检测信号时,回收分配给该许可证客户 端的许可证。
2.根据权利要求 1所述的方法, 其特征在于, 所述确定有效性检测 保护时间为:所述许可证服务器获取预先静态设置在内部的有效性检测 保护时间。
3.根据权利要求 2所述的方法, 其特征在于, 所述有效性检测保护 时间为对应不同许可证客户端的不同有效性检测保护时间;
所述许可证服务器给许可证客户端分配许可证之后进一步包括: 许 可证服务器向许可证客户端下发许可证, 同时向许可证客户端发送对应 该许可证客户端的有效性检测保护时间信息。
4.根据权利要求 1所述的方法, 其特征在于, 所述许可证服务器接 收许可证客户端的许可证申请的同时,接收许可证客户端发送的有效 性检测保护时间协商信息;
所述确定有效性检测保护时间为: 所述许可证服务器按照自身预 先设置的合理性判定策略, 确定许可证客户端请求的有效性检测保护时 间协商信息合理时, 将许可证客户端请求的有效性检测保护时间确定为 有效性检测保护时间;
所述许可证服务器给许可证客户端分配许可证之后进一步包括: 给许可证客户端下发许可证, 并返回有效性检测保护时间确认有效信
5.根据权利要求 4所述的方法, 其特征在于, 该方法进一步包括: 所述许可证服务器按照自身预先设置的合理性判定策略, 确定许可证客 户端请求的有效性检测保护时间协商信息不合理时, 向许可证客户端返 回拒绝许可证请求, 并同时将预先设置的合理性判定策略中的参考有效 性检测保护时间发送给许可证客户端;
许可证服务器接收所述许可证客户端返回协商得到的有效检测保 护时间; 或者, 许可证服务器接收所述许可证客户端发送的自身的有效 性检测保护时间协商信息, 进行继续协商, 直到满足许可证客户端的协 商策略, 或者许可证客户端放弃协商为止。
6.根据权利要求 3或 5所述的方法, 其特征在于, 所述许可证服务 器接收所述许可证客户端发送的心跳检测信号包括: 所述许可证服务器 按照申请许可证的许可证客户端对应的有效性检测保护时间的时长, 启 动计时定时器, 并在该计时定时器的定时时长范围内接收来自许可证客 户端的心跳检测信号; 在有效性检测保护时间的时长内, 如果收到来自 所述许可证客户端的心跳检测信号, 则重新启动计时定时器进行检测; 如果计时定时器超过有效性检测保护时间的时长, 且未收到来自所述许 可证客户端的心跳检测信号, 则所述许可证服务器回收授权给许可证客 户端的许可证。
7.根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 第三 方通过所述许可证服务器强制回收分配给许可证客户端的许可证, 所述 许可证服务器通知许可证客户端释放许可证。
8.—种网络许可证管理方法, 其特征在于, 该方法包括:
许可证客户端向许可证服务器申请许可证; 接收许可证服务器下发的许可证;
确定有效性检测保护时间;
许可证客户端, 在所述有效性检测保护时间内, 向许可证服务器 发送心跳检测信号。
9.根据权利要求 8所述的方法, 其特征在于, 所述确定有效性检测 保护时间为: 接收许可证服务器下发所述许可证的同时, 发送的有效性 检测保护时间。
10.根据权利要求 9所述的方法, 其特征在于, 所述有效性检测保 护时间为对应不同许可证客户端的不同有效性检测保护时间。
11.根据权利要求 7 所述的方法, 其特征在于, 所述确定有效性检 测保护时间为:
所述许可证客户端向许可证服务器申请许可证的同时, 将自身的有 效性检测保护时间协商信息发送给许可证服务器;
所述许可证客户端接收许可证服务器发送的有效性检测保护时间 确认有效信息。
12.根据权利要求 11所述的方法, 其特征在于, 该方法进一步包括: 许可证客户端接收许可证服务器返回的拒绝许可证请求, 以及预先 设置的合理性判定策略中的参考有效性检测保护时间;
许可证客户端按照自身预先设置的协商策略, 在接收到的所述参考 有效性检测保护时间满足协商策略时, 返回协商得到的有效检测保护时 间; 否则向许可证服务器发送自身的有效性检测保护时间协商信息, 进 行继续协商, 直到满足许可证客户端的协商策略, 或者许可证客户端放 弃协商为止。
13.根据权利要求 10或 12所述的方法, 其特征在于, 所述许可证客 户端发送的心跳检测信号为: 所述许可证客户端根据获得的有效性检测 保护时间, 启动检测定时器, 向许可证服务器发送的心跳检测信号。
14.根据权利要求 13所述的方法, 其特征在于, 所述许可证客户端 向许可证月良务器发送心跳检测信号的方法为:
所述许可证客户端在检测定时器的定时周期内, 按照预设的心跳检 测周期向许可证服务器发起心跳检测信号。
15.—种网络许可证管理系统, 其特征在于, 该系统包括: 许可证服 务器, 以及至少一个许可证客户端;
许可证服务器, 用于接收来自许可证客户端的申请许可证请求, 授 权许可证后, 在自身确定的有效性检测保护时间内, 与申请到许可证 的许可证客户端之间进行心跳检测, 并在心跳检测失败时, 回收分配 给该许可证客户端的许可证;
许可证客户端, 用于向许可证服务器申请许可证请求, 在获得许 可证和有效性检测保护时间后, 与许可证服务器之间进行心跳检测, 并在心跳检测失败时, 释放申请到的许可证。
16.根据权利要求 15所述的系统, 其特征在于, 所述许可证服务器 包括: 许可证授权模块、 计时模块、 第一检测模块和许可证处理模块; 其中,
许可证授权模块, 用于接收来自许可证客户端的申请许可证请求, 并进行许可证授权处理, 在授权许可证时向许可证客户端发送许可证和 自身确定的有效性检测保护时间; 由所述计时模块计时;
计时模块, 用于按照许可证服务器自身确定的有效性检测保护时 间启动计时;
第一检测模块, 用于在所述计时模块启动计时后, 与申请到许可证 的许可证客户端之间进行心跳检测, 在有效性检测保护时间的时长内, 如果收到来自所述许可证客户端的心跳检测信号, 由所述计时模块重新 启动计时; 如果超过有效性检测保护时间的时长且未收到来自所述许可 证客户端的心跳检测信号, 由所述许可证处理模块回收许可证;
许可证处理模块, 用于回收分配给该许可证客户端的许可证。
17.根据权利要求 16所述的系统, 其特征在于, 所述许可证处理模 块进一步用于, 接收来自外部的强制回收许可证请求, 回收请求的许可 证。
18.根据权利要求 15所述的系统, 其特征在于, 所述许可证客户端 包括: 许可证申请模块、 第二检测模块, 其中,
许可证申请模块, 用于向所述许可证服务器发送申请许可证请求; 第二检测模块, 用于接收到来自所述许可证服务器分配的许可证和 有效性检测保护时间, 与许可证服务器之间进行心跳检测, 并在有效 性检测保护时间内, 按照预设的心跳检测周期向许可证服务器发送心跳 检测信号。
19.一种许可证服务器, 其特征在于, 所述许可证服务器包括: 许可 证授权模块、 计时模块、 第一检测模块和许可证处理模块; 其中, 许可证授权模块, 用于接收来自许可证客户端的申请许可证请求, 并进行许可证授权处理, 在授权许可证时向许可证客户端发送给许可证 和自身确定的有效性检测保护时间; 由所述计时模块计时;
计时模块, 用于按照许可证服务器自身确定的有效性检测保护时 间启动计时;
第一检测模块, 用于在所述计时模块启动计时后, 与申请到许可证 的许可证客户端之间进行心跳检测, 在有效性检测保护时间的时长内, 如果收到来自所述许可证客户端的心跳检测信号, 由所述计时模块重新 启动计时; 如果超过有效性检测保护时间的时长且未收到来自所述许可 证客户端的心跳检测信号, 由所述许可证处理模块回收许可证; 许可证处理模块, 用于回收分配给该许可证客户端的许可证。
20.根据权利要求 19所述的许可证服务器, 其特征在于, 所述许可 证处理模块进一步用于, 接收来自外部的强制回收许可证请求, 回收请 求的许可证。
21.—种许可证客户端, 其特征在于, 所述许可证客户端包括: 许可 证申请模块、 第二检测模块, 其中,
许可证申请模块, 用于向所述许可证服务器发送申请许可证请求; 第二检测模块, 用于接收到来自所述许可证服务器分配的许可证和 有效性检测保护时间, 与许可证服务器之间进行心跳检测, 并在有效 性检测保护时间内, 按照预设的心跳检测周期向许可证服务器发送心跳 检测信号。
PCT/CN2007/070848 2006-12-31 2007-10-08 Procédé de gestion de licence web et système associé, terminal client et serveur de licence WO2008080319A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2006101564632A CN100539516C (zh) 2006-12-31 2006-12-31 网络许可证管理方法、系统及许可证服务器和客户端
CN200610156463.2 2006-12-31

Publications (1)

Publication Number Publication Date
WO2008080319A1 true WO2008080319A1 (fr) 2008-07-10

Family

ID=38697757

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/070848 WO2008080319A1 (fr) 2006-12-31 2007-10-08 Procédé de gestion de licence web et système associé, terminal client et serveur de licence

Country Status (2)

Country Link
CN (1) CN100539516C (zh)
WO (1) WO2008080319A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104271253A (zh) * 2012-05-09 2015-01-07 西门子能量股份有限公司 包括安全联锁件的喷涂隔室中的热喷涂设备

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521530A (zh) * 2011-10-21 2012-06-27 张国 一种许可证回收方法及系统
CN102497374A (zh) * 2011-12-13 2012-06-13 方正国际软件有限公司 基于云计算可离线的软件许可集中安全认证系统及其方法
CN102882708A (zh) * 2012-09-05 2013-01-16 北京神州绿盟信息安全科技股份有限公司 运维审计方法、装置及系统
CN105530524A (zh) * 2014-09-30 2016-04-27 中兴通讯股份有限公司 一种对获取加密内容的终端设备的权限管理装置及方法
CN107885980B (zh) * 2017-12-06 2020-02-11 武汉万创科技有限公司 一种软件管理方法及系统
CN108093318B (zh) * 2017-12-29 2021-05-18 武汉长光科技有限公司 一种PON系统License认证的方法和OLT
CN111628987B (zh) * 2020-05-22 2022-08-09 北京金山云网络技术有限公司 鉴权方法、装置、系统、电子设备及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501636A (zh) * 2002-11-19 2004-06-02 华为技术有限公司 一种检测web认证用户是否在线的方法
CN1578216A (zh) * 2003-07-14 2005-02-09 索尼株式会社 信息发送/接收装置和方法以及信息提供系统
US20060020555A1 (en) * 2004-07-26 2006-01-26 Septon Daven W Monitoring a license proxy

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501636A (zh) * 2002-11-19 2004-06-02 华为技术有限公司 一种检测web认证用户是否在线的方法
CN1578216A (zh) * 2003-07-14 2005-02-09 索尼株式会社 信息发送/接收装置和方法以及信息提供系统
US20060020555A1 (en) * 2004-07-26 2006-01-26 Septon Daven W Monitoring a license proxy

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104271253A (zh) * 2012-05-09 2015-01-07 西门子能量股份有限公司 包括安全联锁件的喷涂隔室中的热喷涂设备

Also Published As

Publication number Publication date
CN101009592A (zh) 2007-08-01
CN100539516C (zh) 2009-09-09

Similar Documents

Publication Publication Date Title
WO2008080319A1 (fr) Procédé de gestion de licence web et système associé, terminal client et serveur de licence
JP4054418B2 (ja) 分散ガーベッジコレクションのためのリソースの管理方法、装置、コンピュータシステム並びにプラットフォーム間に分散したリソースの割当及び割当解除方法
US6247026B1 (en) Method, apparatus, and product for leasing of delegation certificates in a distributed system
US7856664B2 (en) Method, system and computer program for a secure backup license server in a license management system
KR101941728B1 (ko) 클러스터화된 클라이언트 장애 해결 기법
CN101771564B (zh) 会话上下文的处理方法、装置和系统
US9009079B2 (en) Planning assignment of software licenses
WO1998003913A1 (en) Method and apparatus for synchronizing transactions in a distributed system
CN106357694B (zh) 一种访问请求处理方法及装置
CN110784457B (zh) 一种业务访问方法及装置
CN102611698A (zh) 证明的主题的自我调节
WO2005046118A1 (fr) Procede pour verifier la validite d'un abonne
WO2011026358A1 (zh) 一种Web认证用户异常下线的处理方法和系统
CN103685192A (zh) 一种对第三方应用发起的调用进行限制的方法及装置
WO2012106951A1 (zh) 一种超时控制的方法、装置及系统
CA2550879A1 (en) License distribution in a packet data network
WO2018094686A1 (zh) 一种smb业务故障处理方法和存储设备
CN113536237A (zh) 一种license控制方法及装置
CN112346914A (zh) 权限管理方法、装置和系统
CN111163039B (zh) 一种认证方法、认证服务器、认证终端及认证设备
JP2004005377A (ja) 多重システム停止の再発防止方法
KR100472926B1 (ko) 네트웍을 이용한 소프트웨어 플로팅 라이센스 관리 방법및 시스템
US8844006B2 (en) Authentication of services on a partition
CN112105069B (zh) 一种互联网边缘计算无线网络切换方法及系统
CN114363264B (zh) 一种服务预约方法

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: 07817039

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: 07817039

Country of ref document: EP

Kind code of ref document: A1