Retro-fitting Security into REST web services sample is part of the talk presented at Java One 2014. For more information about the talk visit session page.
To deploy run
mvn clean install
cp */target/*.war $CATALINA_HOME/webapps/.
To re-deploy clean first
rm -rf $CATALINA_HOME/webapps/secure#*; rm -rf $CATALINA_HOME/webapps/insecure#*
To setup, run following SQL script on local MySQL database
schema/src/main/resources/create.sql