Secure link package ver. 1.4


This package lets you add special kind of links to your web applications. You may add links that will be valid during the restricted amount of time or for the restricted set of hits (requests). It could be useful for example when you need allow a temporary access to your system or add some access restrictions etc. For example (just a typical use case):

A new user has been registered in your system and your application asks new member to visit some unique page in order to confirm own address. Your JSP page (registration page) may create that unique link through the special custom tag provided in this package and publish it for the user. And this created link could be valid during the restricted time and/or for the restricted amount of hits. Additionally, this link could be a virtual. So all the incoming requests will be actually forwarded (redirected) to some real page.

How to use it:

a) download securelinkflt.jar and save it in WEB-INF/lib

b) describe a new filter in web.xml. This filter will proceed your special requests:
 


<filter>
  <filter-name>SecureLinkFilter</filter-name>
  <filter-class>com.cj.securelink.SecureLinkFilter</filter-class>
</filter>

c) describe a mapping for this filter in web.xml. E.g.:
 


<filter-mapping>
  <filter-name>SecureLinkFilter</filter-name>
  <url-pattern>/a/*.jsp</url-pattern>
</filter-mapping>

in this example filter will be on for the each .jsp file in /a subdirectory. Obviously all the links that you will create (declare) must be covered by this mapping. For the above mentioned mapping it could be some like this for example: http://host_name/application_name/a/pq12345.jsp etc.

And now you may use Secure link taglib for creating restricted links.

Also this package provides a build-in GUI tool (servlet) for adding/deleting restricted links. Of course Secure link taglib lets you write your own console as well. In order to use build-in servlet you have define it in web.xml too:
 


<servlet>
  <servlet-name>SecureLinkServlet</servlet-name>
  <servlet-class>com.cj.securelink.SecureLinkServlet</servlet-class>
</servlet>

 

<servlet-mapping>
  <servlet-name>SecureLinkServlet</servlet-name>
  <url-pattern>/servlet/SecureLink</url-pattern>
</servlet-mapping>

and use it so: http://host/servlet/SecureLink

Note: the evaluation version supports up to 5 links.

   For downloading:

    Secure link package:  securelinkflt.jar

 ©  Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

     

Also in JSOS: