public abstract class BaseUserDetailsAuthenticationProvider<U extends User>
extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.security.core.userdetails.UserDetailsService, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Constructor and Description | 
|---|
| BaseUserDetailsAuthenticationProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
                              org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) | 
| protected abstract void | delete(U user) | 
| List<U> | deleteTestUsers() | 
| protected abstract U | findByName(String username) | 
| GenericUser | findEverywhere(String username) | 
| protected GenericUser | findSecurityUser(String username) | 
| List<U> | initTestUsers() | 
| org.springframework.security.core.userdetails.UserDetails | loadUserByUsername(String username) | 
| void | onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) | 
| protected org.springframework.security.core.userdetails.UserDetails | retrieveUser(String username,
            org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) | 
| protected abstract U | save(U user) | 
| protected abstract org.springframework.security.core.GrantedAuthority | saveRole(org.springframework.security.core.GrantedAuthority authority) | 
| void | setCipher(cn.home1.oss.lib.common.crypto.EncodeCipher cipher) | 
| protected abstract List<U> | testUsers() | 
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportspublic BaseUserDetailsAuthenticationProvider()
protected final void additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
                                                    org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
                                             throws org.springframework.security.core.AuthenticationException
additionalAuthenticationChecks in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic final org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionprotected final org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
retrieveUser in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic final GenericUser findEverywhere(String username)
protected final GenericUser findSecurityUser(String username)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>public final void setCipher(cn.home1.oss.lib.common.crypto.EncodeCipher cipher)
protected abstract void delete(U user)
protected abstract org.springframework.security.core.GrantedAuthority saveRole(org.springframework.security.core.GrantedAuthority authority)
Copyright © 2017. All rights reserved.