Grails Spring Security is a great plugin that allows you to set up authorization for your app with just a few lines in Grails configuration. Users can register to your website, click on a confirmation link received by e-mail and login with the username and password.
Researchers call on Oracle to step up Java security.