π Java client to use Signed URL Plugin Apache Traffic Server, implementation based on the Signed URL Plugin
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'
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();
git clone https://github.com/buraksarp/ats-url-signer
cd ats-url-signer
mvn clean install
Please see the documentation
Please check the license file.