Spring Security customAuthentication implemented.