M3D / M3D / Utility / LicenseHelper
Class: LicenseHelper
File
Brief
许可帮助类
Author
yw
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Methods
- copy
- getBeginDate
- getCheckLicenseType
- getContentStr
- getCopyRight
- getCreateDate
- getCreator
- getCustomer
- getCustomerEmail
- getDevices
- getEndDate
- getID
- getInitState
- getInitStateCode
- getLicenseType
- getModules
- getProductName
- getProductVersion
- getSeat
- getServerAddress
- getServerMAC
- getSingCode
- getTerm
- getUsers
- setBeginDate
- setContentStr
- setCopyRight
- setCreateDate
- setCreator
- setCustomer
- setCustomerEmail
- setDevices
- setEndDate
- setID
- setInitState
- setInitStateCode
- setLicenseOption
- setLicenseType
- setModules
- setProductName
- setProductVersion
- setSeat
- setServerAddress
- setServerMAC
- setSingCode
- setTerm
- setUsers
Constructors
constructor
• new LicenseHelper(): LicenseHelper
构造函数
Returns
Methods
copy
▸ copy(): LicenseHelper
复制
Returns
getBeginDate
▸ getBeginDate(): string
获取许可开始时间
Returns
string
许可开始时间
getCheckLicenseType
▸ getCheckLicenseType(): number
获得许可验证类型1以本地时间许可 0以服务许可2本地许可文件验证
Returns
number
许可验证类型
getContentStr
▸ getContentStr(): string
获取内容字符串
Returns
string
内容字符串
getCopyRight
▸ getCopyRight(): string
获取版权信息
Returns
string
版权信息
getCreateDate
▸ getCreateDate(): string
获取许可制作日期时间
Returns
string
许可制作日期时间
getCreator
▸ getCreator(): string
获取许可制作工具
Returns
string
许可制作工具
getCustomer
▸ getCustomer(): string
获取客户/公司名
Returns
string
客户/公司名
getCustomerEmail
▸ getCustomerEmail(): string
获取申请邮箱
Returns
string
申请邮箱信息
getDevices
▸ getDevices(): string
获取许可设备ID/MAC地址
Returns
string
许可设备ID/MAC地址
getEndDate
▸ getEndDate(): string
获取许可结束时间
Returns
string
许可结束时间
getID
▸ getID(): string
获取id
Returns
string
许可id
getInitState
▸ getInitState(): boolean
获取信息签名与内容是否验证通过
Returns
boolean
信息签名与内容是否验证通过
getInitStateCode
▸ getInitStateCode(): number
获取初始化状态码
Returns
number
init状态码
getLicenseType
▸ getLicenseType(): string
获取许可类型
Returns
string
许可类型
getModules
▸ getModules(): string
获取许可功能+点数列表
Returns
string
getProductName
▸ getProductName(): string
获取产品名称
Returns
string
产品名称
getProductVersion
▸ getProductVersion(): string
获取产品版本号
Returns
string
产品版本
getSeat
▸ getSeat(): string
获取许可点数
Returns
string
许可点数
getServerAddress
▸ getServerAddress(): string
获取许可认证服务器地址
Returns
string
许可认证服务器地址
getServerMAC
▸ getServerMAC(): string
获取服务器Mac地址
Returns
string
服务器Mac地址
getSingCode
▸ getSingCode(): string
获取信息签名,防篡改
Returns
string
信息签名,防篡改
getTerm
▸ getTerm(): string
设置许可期限天数