public class KimAuthenticationProvider extends AbstractUserDetailsAuthenticationProvider
AuthenticationProvider implementation that retrieves user details
from an UserDetailsService. Slightly modified from DaoAuthenticationProviderhideUserNotFoundExceptions, logger, messages| Constructor and Description |
|---|
KimAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalAuthenticationChecks(UserDetails userDetails,
UsernamePasswordAuthenticationToken authentication) |
protected void |
doAfterPropertiesSet() |
protected PasswordEncoder |
getPasswordEncoder() |
protected SaltSource |
getSaltSource() |
protected UserDetailsService |
getUserDetailsService() |
protected boolean |
isIncludeDetailsObject() |
protected UserDetails |
retrieveUser(String username,
UsernamePasswordAuthenticationToken authentication) |
void |
setPasswordEncoder(PasswordEncoder passwordEncoder)
Sets the PasswordEncoder instance to be used to encode and validate passwords.
|
void |
setSaltSource(SaltSource saltSource)
The source of salts to use when decoding passwords.
|
void |
setUserDetailsService(UserDetailsService userDetailsService) |
afterPropertiesSet, authenticate, createSuccessAuthentication, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportspublic KimAuthenticationProvider()
protected void additionalAuthenticationChecks(UserDetails userDetails, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException
additionalAuthenticationChecks in class AbstractUserDetailsAuthenticationProviderAuthenticationExceptionprotected void doAfterPropertiesSet() throws Exception
doAfterPropertiesSet in class AbstractUserDetailsAuthenticationProviderExceptionprotected final UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException
retrieveUser in class AbstractUserDetailsAuthenticationProviderAuthenticationExceptionpublic void setPasswordEncoder(PasswordEncoder passwordEncoder)
PlaintextPasswordEncoder will be used by default.passwordEncoder - The passwordEncoder to useprotected PasswordEncoder getPasswordEncoder()
public void setSaltSource(SaltSource saltSource)
null
is a valid value, meaning the DaoAuthenticationProvider
will present null to the relevant PasswordEncoder.saltSource - to use when attempting to decode passwords via the PasswordEncoderprotected SaltSource getSaltSource()
public void setUserDetailsService(UserDetailsService userDetailsService)
protected UserDetailsService getUserDetailsService()
protected boolean isIncludeDetailsObject()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.