Added basic JAAS function to make sure authenticate before able to use the application. Enforces available operations with basic Policy file.