This example will let you understand basic concepts of spring security module