Chapter 10.2: Adding basic authentication with filters This is the sample code for chapter ten of Play for Java.