Spring Security中使用的策略模式
2022-02-22 18:48:00 3 举报
Spring Security中使用的策略模式
作者其他创作
大纲/内容
InheritableThreadLocalSecurityContextHolderStrategy
- contextHolder:ThreadLocal<SecurityContext> = new ThreadLocal()
+ clearContext():void+ getContext():SecurityContext+ setContext(SecurityContext var1):void+ createEmptyContext():SecurityContext
implements
使用
SecurityContextImpl
+ authentication:Authentication
+ getAuthentication():Authentication+ setAuthentication(Authentication var1):void+ equals(Object obj):boolean+ hashCode():int+ toString():String
SecurityContextHolderStrategy
SecurityContextHolder
- strategy:SecurityContextHolderStrategy......
+ initialize():void......
SecurityContext
+ getAuthentication():Authentication+ setAuthentication(Authentication var1):void
ThreadLocalSecurityContextHolderStrategy
GlobalSecurityContextHolderStrategy
- contextHolder:SecurityContext
Spring Security中使用的策略模式
0 条评论
下一页