// the credentials store (realm file)
LoginService loginService = new HashLoginService(
"elastisys:scale security realm",
servletDefinition.getRealmFile());
securityHandler.getServer().addBean(loginService);
securityHandler.setAuthenticator(new BasicAuthenticator());
securityHandler.setLoginService(loginService);
constraint.setAuthenticate(true);
constraint.setRoles(new String[] { servletDefinition
.getRequireRole() });
}