protected boolean applyAnonymousForThisRequest(HttpServletRequest request) {
return true;
}
protected Authentication createAuthentication(HttpServletRequest request) {
AnonymousAuthentication auth = new AnonymousAuthentication(key, null);
auth.setDetails(authenticationDetailsSource.buildDetails((HttpServletRequest) request));
return auth;
}