Skip to content

Repository files navigation

Note

This Java project implements Tencent-RTC's UserSig authentication, providing a secure server-side method for generating signatures to protect the keys from leakage.

Integration

maven

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

gradle

dependencies {
compile 'com.github.tencentcloud: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

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

About

This Java project implements Tencent-RTC's UserSig authentication,

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Contributors

Languages