Demo 1 - Authentication with JAAS
Demo 1 bis - Authentication using a callback handler
Demo 2 - Authorization with JAAS
Demo 3 - Writing a custom login module