在Spring Security 中,SecurityContext 对象用于存储安全上下文信息,包括当前认证的用户信息等。HttpSessionSecurityContextRepository 是一个实现了 SecurityContextRepository 接口的类,它负责在 HttpSession 中存储和检索 SecurityContext 对象。通过 HttpSessionSecu