Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 953 Bytes

README_EN.md

File metadata and controls

33 lines (30 loc) · 953 Bytes

Note

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.

Integration

maven

<dependencies>
    <dependency>
        <groupId>com.github.tencentyun</groupId>
        <artifactId>tls-sig-api-v2</artifactId>
        <version>2.0</version>
    </dependency>
</dependencies>

gradle

dependencies {
    compile 'com.github.tencentyun:tls-sig-api-v2:2.0'
}

source code

./gradlew -b user_build.gradle build

The generated jar can be found under build/libs. You can download it by yourself by relying on org.json.

use

import com.tencentyun.TLSSigAPIv2;

TLSSigAPIv2 api = new TLSSigAPIv2(1400000000, "5bd2850fff3ecb11d7c805251c51ee463a25727bddc2385f3fa8bfee1bb93b5e");
System.out.print(api.genUserSig("xiaojun", 180*86400));