Package org.springframework.security.core.context
package org.springframework.security.core.context
Classes related to the establishment of a security context for the duration of a
request (such as an HTTP or RMI invocation).
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
.
-
ClassDescriptionAn interface that allows delayed access to a
SecurityContext
that may be generated.An API for notifying when theSecurityContext
changes.ASecurityContextChangedListener
that adds events to an existingObservation
If noObservation
is present when an event is fired, then the event is unrecorded.Allows getting and setting the SpringSecurityContext
into aContext
.Interface defining the minimum security information associated with the current thread of execution.An event that represents a change inSecurityContext
A listener forSecurityContextChangedEvent
sAssociates a givenSecurityContext
with the current execution thread.A strategy for storing security context information against a thread.Base implementation ofSecurityContext
.ASecurityContext
that is annotated with @Transient
and thus should never be stored across requests.