Spring security custom authentication filter example. According to Spring Security Architecture the process is:.