tls-sig-api

tls sig api for java

License

License

GroupId

GroupId

com.github.tencentyun
ArtifactId

ArtifactId

tls-sig-api
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

tls-sig-api
tls sig api for java
Project URL

Project URL

https://github.com/tencentyun/tls-sig-api-java
Source Code Management

Source Code Management

https://github.com/tencentyun/tls-sig-api-java

Download tls-sig-api

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.tencentyun/tls-sig-api/ -->
<dependency>
    <groupId>com.github.tencentyun</groupId>
    <artifactId>tls-sig-api</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.tencentyun/tls-sig-api/
implementation 'com.github.tencentyun:tls-sig-api:1.2'
// https://jarcasting.com/artifacts/com.github.tencentyun/tls-sig-api/
implementation ("com.github.tencentyun:tls-sig-api:1.2")
'com.github.tencentyun:tls-sig-api:jar:1.2'
<dependency org="com.github.tencentyun" name="tls-sig-api" rev="1.2">
  <artifact name="tls-sig-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.tencentyun', module='tls-sig-api', version='1.2')
)
libraryDependencies += "com.github.tencentyun" % "tls-sig-api" % "1.2"
[com.github.tencentyun/tls-sig-api "1.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.bouncycastle : bcpkix-jdk15on jar 1.59
org.bouncycastle : bcprov-jdk15on jar 1.59
org.json : json jar 20180130

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

使用构建工具集成

maven

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

gradle

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

源码构建

./gradlew -b user_build.gradle build

生成的 jar 在 build/libs 下面可以找到。依赖需要自行到 release 下载。

生成 sig

默认有效期接口

import com.tls.tls_sigature.*;

GenTLSSignatureResult result = tls_sigature.genSig(140000000, "xiaojun", priKeyContent);
System.out.println(result.urlSig);

指定有效期接口

import com.tls.tls_sigature.*;

GenTLSSignatureResult result = tls_sigature.GenTLSSignatureEx(140000000, "xiaojun", priKeyContent, 24*3600*180);
System.out.println(result.urlSig);
com.github.tencentyun

腾讯云

腾讯云的APIs, SDKs, 开源项目以及文档

Versions

Version
1.2
1.1
1.0