Spring Security structure.