October 2018
Intermediate to advanced
590 pages
15h 5m
English
As you already know, this filter is responsible for SecurityContext persistence between requests. Let's see how it works internally by checking the class diagram shown in the following figure:

As you can see, the filter holds a reference to an instance of HttpSessionSecurityContextRepository, which implements the SecurityContextRepository interface. The filter also uses SecurityContextHolder to set up SecurityContext as well as clear it out. The SecurityContext implementation, SecurityContextImpl, holds an instance of Authentication.
In an ...
Read now
Unlock full access