首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > java包产生有效的mod_auth_token URI

java包产生有效的mod_auth_token URI

  • 资源大小:5.72 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: java 产生 有效

资 源 简 介

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
VIP VIP
0.182307s