public class BHiveDaoAuthenticationProvider
extends org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
AuthenticationProvider implementation that retrieves user details from a
UserDetailsService.| Constructor and Description |
|---|
BHiveDaoAuthenticationProvider() |
| 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.crypto.password.PasswordEncoder |
getPasswordEncoder() |
protected org.springframework.security.core.userdetails.UserDetailsService |
getUserDetailsService() |
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) |
void |
setPasswordEncoder(Object passwordEncoder)
Sets the PasswordEncoder instance to be used to encode and validate
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, supportsprotected 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.AuthenticationExceptionprotected void doAfterPropertiesSet()
throws Exception
doAfterPropertiesSet in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProviderExceptionprotected 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 void setPasswordEncoder(Object passwordEncoder)
For systems which are already using salted password which are encoded
with a previous release, the encoder should be of type
org.springframework.security.authentication.encoding.PasswordEncoder
. Otherwise, the recommended approach is to use
org.springframework.security.crypto.password.PasswordEncoder.
passwordEncoder - must be an instance of one of the PasswordEncoder
types.protected org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
protected org.springframework.security.core.userdetails.UserDetailsService getUserDetailsService()
Copyright © 2018. All rights reserved.