Fetch the repository succeeded.
smart-license 是一款用于安全加固的开源项目。 主要服务于非开源产品、商业软件、具备试用功能的付费软件等,为软件提供授权制的使用方式。
名词解释:
适用场景:
产品特色:
如果喜欢该作品,欢迎底下捐赠一杯3.8折的瑞幸咖啡。
License申请流程
找回License
./license.sh -t HelloWorld -e 2021-12-12
。./license.sh -f test.txt -e 2021-12-12
。license.txt
以及 License源文件:source.txt
。
注意:license.txt是提供给客户的授权文件;而source.txt是由软件提供方持有,其中包含加密私钥,需要妥善保管
引入Maven依赖
<dependency>
<groupId>org.smartboot.license</groupId>
<artifactId>license-client</artifactId>
<version>1.0.4</version>
</dependency>
载入License。如若License已过期,则会触发异常。
public class LicenseTest {
public static void main(String[] args) throws Exception {
File file=new File("license.txt");
License license = new License();
LicenseEntity licenseEntity=license.loadLicense(file);
System.out.println(new String(licenseEntity.getData()));
}
}
获取licenseEntity并以此配置启动软件。
./license_revert.sh source.txt
。
license_revert.txt
。微信公众号: 搜索 "smart_boot" 或者扫描底部二维码。
Sign in to post a comment
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Repository Comments ( 99 )