securityContext相关类关系图

对外:SecurityContextPersistenceFilter,SecurityContextRegister(HttpSessionSecurityContextRepository),HttpSession,SecurityContext,Authentication
说明:SecurityContextPersistenceFilter的作用是请求开始之前从HttpSession获取SecurityContext;请求结束把SessionContext存储在HttpSession

对内:SecurityContextHolder,SecurityContextHolderStrategy,SecurityContext,Authentication
SecurityContextHolder相当于一个委派类,具体操作委派给SecurityContextHolderStrategy的实现类。

securityContext对内对外结构图.png

你可能感兴趣的:(securityContext相关类关系图)