资 源 简 介
A Java Utility for generating valid mod_auth_token uris. No dependencies are required, just a Java Runtime Environment 1.4 or above.
Example Usage
String uri = new ApacheAuthToken("SECRET_KEY", "protected", "some/file.txt").toUriString();
will generate something like this:
protected/3ad572defe68a65b5982aa412ef2f587/4aaa1542/some/file.txt
mod_auth_token
mod\_auth\_token is an Apache Module written by Mikael Johansson at http://www.synd.info. mod\_auth\_token is a time-based tokenised authentication system for Apache, mainly targetted at securing downloads.
httpd.conf settings
To enable the module you"ll need the following in your httpd.conf:
LoadModule mod_auth_token modules/mod_auth_token.so
Then, to secure a download directory, you"ll need the following in your htt