A security context is usually associated with the current execution thread for the duration of the request, making the authentication information it contains available throughout all the layers of an application.
The SecurityContext
can be accessed at any point
by calling the SecurityContextHolder
.
SecurityContext | Interface defining the minimum security information associated with the current thread of execution. |
SecurityContextHolderStrategy | A strategy for storing security context information against a thread. |
SecurityContextHolder | Associates a given SecurityContext with the current execution thread. |
SecurityContextImpl | Base implementation of SecurityContext . |