Example of how to login to a tomcat application securely using the JAAS login facility.