public class WebAuthenticationProvider
extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
Constructor and Description |
---|
WebAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.core.userdetails.UserDetails userDetails,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
protected void |
doAfterPropertiesSet() |
protected org.springframework.security.authentication.encoding.PasswordEncoder |
getPasswordEncoder() |
protected org.springframework.security.authentication.dao.SaltSource |
getSaltSource() |
protected org.springframework.security.core.userdetails.UserDetailsService |
getUserDetailsService() |
protected boolean |
isIncludeDetailsObject() |
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
void |
setIncludeDetailsObject(boolean includeDetailsObject)
Deprecated.
use
org.springframework.security.providers.ProviderManager#setClearExtraInformation(boolean) |
void |
setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
Sets the PasswordEncoder instance to be used to encode and validate passwords.
|
void |
setSaltSource(org.springframework.security.authentication.dao.SaltSource saltSource)
The source of salts to use when decoding passwords.
|
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) |
afterPropertiesSet, authenticate, createSuccessAuthentication, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
protected 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.AbstractUserDetailsAuthenticationProvider
org.springframework.security.core.AuthenticationException
protected void doAfterPropertiesSet() throws Exception
doAfterPropertiesSet
in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
Exception
protected 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.AbstractUserDetailsAuthenticationProvider
org.springframework.security.core.AuthenticationException
public void setPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
PlaintextPasswordEncoder
will be used by default.passwordEncoder
- The passwordEncoder to useprotected org.springframework.security.authentication.encoding.PasswordEncoder getPasswordEncoder()
public void setSaltSource(org.springframework.security.authentication.dao.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 PasswordEncoder
protected org.springframework.security.authentication.dao.SaltSource getSaltSource()
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
protected org.springframework.security.core.userdetails.UserDetailsService getUserDetailsService()
protected boolean isIncludeDetailsObject()
@Deprecated public void setIncludeDetailsObject(boolean includeDetailsObject)
org.springframework.security.providers.ProviderManager#setClearExtraInformation(boolean)
Copyright © 2016. All rights reserved.