Skip to content

Commit 52459e5

Browse files
author
wesleytong
committed
add english readme
1 parent ec949de commit 52459e5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README_EN.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Note
2+
This project is the java implementation of tls-sig-api-v2. Previous asymmetric keys cannot use APIs of this version. To enable them to use APIs of this version,[see here](https://github.com/tencentyun/tls-sig-api-java).
3+
## Integration
4+
### maven
5+
``` xml
6+
<dependencies>
7+
<dependency>
8+
<groupId>com.github.tencentyun</groupId>
9+
<artifactId>tls-sig-api-v2</artifactId>
10+
<version>2.0</version>
11+
</dependency>
12+
</dependencies>
13+
```
14+
15+
### gradle
16+
```
17+
dependencies {
18+
compile 'com.github.tencentyun:tls-sig-api-v2:2.0'
19+
}
20+
```
21+
22+
### source code
23+
``` shell
24+
./gradlew -b user_build.gradle build
25+
```
26+
The generated jar can be found under `build/libs`. You can download it by yourself by relying on org.json.
27+
## use
28+
``` java
29+
import com.tencentyun.TLSSigAPIv2;
30+
31+
TLSSigAPIv2 api = new TLSSigAPIv2(1400000000, "5bd2850fff3ecb11d7c805251c51ee463a25727bddc2385f3fa8bfee1bb93b5e");
32+
System.out.print(api.genSig("xiaojun", 180*86400));
33+
```

0 commit comments

Comments
 (0)