File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed
Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 1- # tls-sig-api-v2-java
1+ ## 说明
2+ 本项目为 tls-sig-api-v2 版本的 java 实现,之前非对称密钥无法使用此版本 api,如需使用请查看[ 这里] ( https://github.com/tencentyun/tls-sig-api-java ) 。
3+
4+ ## 集成
5+ ### maven
6+ ``` xml
7+ <dependencies >
8+ <dependency >
9+ <groupId >com.github.tencentyun</groupId >
10+ <artifactId >tls-sig-api-v2</artifactId >
11+ <version >1.0</version >
12+ </dependency >
13+ </dependencies >
14+ ```
15+
16+ ### gradle
17+ ```
18+ dependencies {
19+ compile 'com.github.tencentyun:tls-sig-api-v2:1.0'
20+ }
21+ ```
22+
23+ ### 源码
24+ ``` shell
25+ ./gradlew -b user_build.gradle build
26+ ```
27+ 生成的 jar 在 ` build/libs ` 下面可以找到。依赖 org.json 自行下载即可。
28+
29+ ## 使用
30+ ``` java
31+ import com.tencentyun.TLSSigAPI ;
32+
33+ TLSSigAPI api = new TLSSigAPI (1400000000 , " 5bd2850fff3ecb11d7c805251c51ee463a25727bddc2385f3fa8bfee1bb93b5e" );
34+ System . out. print(api. genSig(" xiaojun" , 180 * 86400 ));
35+ ```
You can’t perform that action at this time.
0 commit comments