All code on this page is copyright (c) 2011, Allen I. Holub.
The code is distributed under version 3 of the GNU Public License with the additional proviso that all derivative works must contain the following notice, displayed prominently along with the derivative work's own copyright notice:
This application contains code (c) 2011 Allen I. Holub (www.holub.com). All rights reserved.You may modify this notice to list exactly what code you're using, but you may not remove the URL. Also, you must leave intact any existing copyright notices, even if you modify the associated file.
In addition to presenting the code, the article also describes all the things you have to do (such as network setup and creating a "certificate") to get the code to work.
extendthe Servlet and override a few database-access methods to integrate the widget into your appplication.
The first article in this mini-series
Secure Login in AJAX Applications describes the issues surrounding
secure login and discuss the architecture of the system.