Skip to content

buraksarp/ats-url-signer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Traffic Server URL Signer 4j

Apache License Build Status PRs Welcome

🔒 Java client to use Signed URL Plugin Apache Traffic Server, implementation based on the Signed URL Plugin

Usage

We will be at Maven Central Repository soon:

<dependency>
  <groupId>io.github.buraksarp</groupId>
  <artifactId>urlsigner</artifactId>
  <version>1.0</version>
</dependency>

or Gradle:

compile 'io.github.buraksarp:urlsigner:1.0'

Supported Operations & Examples

Sign URL

String signedUrl = UrlSign.builder().setContentUrl("http://edge.sarp.net/public/magazine/object.pdf")
               			    .setClientIp("1.2.3.4")
                		    .setTimeToLive(2, TimeUnit.HOURS)
                                    .setParts(SigningPart.ONLY_ALL_DIRECTORY)
                                    .signWith(SignatureAlgorithm.HMAC_SHA1, "secret_key", 0)
                                    .compact();

(More operations to be added)

Building from the source

git clone https://github.com/buraksarp/ats-url-signer
cd ats-url-signer
mvn clean install

Documentation

Please see the documentation

License

Please check the license file.

About

🔑 🔒 Apache Traffic Server URL signer 4j

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages