org.kuali.student.security.kim
Class KimAuthenticationProvider
java.lang.Object
org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider
org.kuali.student.security.kim.KimAuthenticationProvider
- All Implemented Interfaces:
- InitializingBean, MessageSourceAware, AuthenticationProvider
public class KimAuthenticationProvider
- extends AbstractUserDetailsAuthenticationProvider
An AuthenticationProvider
implementation that retrieves user details
from an UserDetailsService
. Slightly modified from DaoAuthenticationProvider
- Author:
- Kuali Student Team
Methods inherited from class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider |
afterPropertiesSet, authenticate, createSuccessAuthentication, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KimAuthenticationProvider
public KimAuthenticationProvider()
additionalAuthenticationChecks
protected void additionalAuthenticationChecks(UserDetails userDetails,
UsernamePasswordAuthenticationToken authentication)
throws AuthenticationException
- Specified by:
additionalAuthenticationChecks
in class AbstractUserDetailsAuthenticationProvider
- Throws:
AuthenticationException
doAfterPropertiesSet
protected void doAfterPropertiesSet()
throws Exception
- Overrides:
doAfterPropertiesSet
in class AbstractUserDetailsAuthenticationProvider
- Throws:
Exception
retrieveUser
protected final UserDetails retrieveUser(String username,
UsernamePasswordAuthenticationToken authentication)
throws AuthenticationException
- Specified by:
retrieveUser
in class AbstractUserDetailsAuthenticationProvider
- Throws:
AuthenticationException
setPasswordEncoder
public void setPasswordEncoder(PasswordEncoder passwordEncoder)
- Sets the PasswordEncoder instance to be used to encode and validate passwords.
If not set,
PlaintextPasswordEncoder
will be used by default.
- Parameters:
passwordEncoder
- The passwordEncoder to use
getPasswordEncoder
protected PasswordEncoder getPasswordEncoder()
setSaltSource
public void setSaltSource(SaltSource saltSource)
- The source of salts to use when decoding passwords.
null
is a valid value, meaning the DaoAuthenticationProvider
will present null
to the relevant PasswordEncoder
.
- Parameters:
saltSource
- to use when attempting to decode passwords via the PasswordEncoder
getSaltSource
protected SaltSource getSaltSource()
setUserDetailsService
public void setUserDetailsService(UserDetailsService userDetailsService)
getUserDetailsService
protected UserDetailsService getUserDetailsService()
isIncludeDetailsObject
protected boolean isIncludeDetailsObject()
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.