Sample code to demonstrate the JAAS API functionality