Spring Security中使用的建造者模式
2022-04-08 18:28:18 7 举报
Spring Security中使用的建造者模式
作者其他创作
大纲/内容
使用
创建
implements
UserAndPasswordAuthenticationProvider
+ userDetailsService:UserDetailsService
+ authenticate(Authentication var1):Authentication
AuthenticationManagerBuilder
+ performBuild():ProviderManager
UserDetailsService
+ loadUserByUsername(String var1) throws UsernameNotFoundException:UserDetails
WebSecurityConfigurerAdapter
+ authenticationBuilder:AuthenticationManagerBuilder+ localConfigureAuthenticationBldr:AuthenticationManagerBuilder
SimpleGrantedAuthority
+ role:String
+ SimpleGrantedAuthority(String role)+ getAuthority():String+ equals(Object obj):boolean......
GrantedAuthority
+ getAuthority():String
Spring Security中使用的建造者模式
LocalUserDetailsService
UserDetails
+ getAuthorities():Collection<? extends GrantedAuthority>+ getPassword():String+ getUsername():String......
ProviderManager
+ providers:List<AuthenticationProvider>+ parent:AuthenticationManager
+ authenticate(Authentication authentication):Authentication
AuthenticationProvider
User
+ username:String+ password:String+ role:String
0 条评论
下一页