A java implementation of authentication and authorization.