Skip to content

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

License

Notifications You must be signed in to change notification settings

Tencent-RTC/tls-sig-api-v2-java

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

import com.tencentcloud.TLSSigAPIv2;

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages