# 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`.

Related Packages
Package
Description
org.springframework.security.core
Core classes and interfaces related to user authentication and authorization, as well as the maintenance of a security context.
Class
Description
DeferredSecurityContext
An interface that allows delayed access to a `SecurityContext` that may be generated.
ListeningSecurityContextHolderStrategy
An API for notifying when the `SecurityContext` changes.
ObservationSecurityContextChangedListener
A `SecurityContextChangedListener` that adds events to an existing `Observation` If no `Observation` is present when an event is fired, then the event is unrecorded.
ReactiveSecurityContextHolder
Allows getting and setting the Spring `SecurityContext` into a `Context`.
SecurityContext
Interface defining the minimum security information associated with the current thread of execution.
SecurityContextChangedEvent
An event that represents a change in `SecurityContext`
SecurityContextChangedListener
A listener for `SecurityContextChangedEvent`s
SecurityContextHolder
Associates a given `SecurityContext` with the current execution thread.
SecurityContextHolderStrategy
A strategy for storing security context information against a thread.
SecurityContextImpl
Base implementation of `SecurityContext`.
TransientSecurityContext
A `SecurityContext` that is annotated with @`Transient` and thus should never be stored across requests.