Package com.avoka.fc.core.security
Class LocalUserDetailsAuthenticationProvider
java.lang.Object
org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
org.springframework.security.authentication.dao.DaoAuthenticationProvider
com.avoka.fc.core.security.LocalUserDetailsAuthenticationProvider
- All Implemented Interfaces:
IPortalAware
,IUserQuery
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.MessageSourceAware
,org.springframework.security.authentication.AuthenticationProvider
public class LocalUserDetailsAuthenticationProvider
extends org.springframework.security.authentication.dao.DaoAuthenticationProvider
implements IUserQuery, IPortalAware
Provides a Local User Account Authentication Provider.
- Since:
- 3.5.0
- See Also:
-
DaoAuthenticationProvider
-
Field Summary
Fields inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
hideUserNotFoundExceptions, logger, messages
-
Constructor Summary
ConstructorDescriptionCreate a LocalAuthenticationProvider and initialize the default properties. -
Method Summary
Modifier and TypeMethodDescriptionboolean
doesUserExist
(String userId) Return true if the user exists with the given authentication provider.getName()
Return the name of the Authentication Provider.void
Set the name of the Authentication Provider.void
Set the object portal.Methods inherited from class org.springframework.security.authentication.dao.DaoAuthenticationProvider
additionalAuthenticationChecks, createSuccessAuthentication, doAfterPropertiesSet, getPasswordEncoder, getUserDetailsService, retrieveUser, setPasswordEncoder, setUserDetailsPasswordService, setUserDetailsService
Methods inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
afterPropertiesSet, authenticate, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports
-
Constructor Details
-
LocalUserDetailsAuthenticationProvider
public LocalUserDetailsAuthenticationProvider()Create a LocalAuthenticationProvider and initialize the default properties.
-
-
Method Details
-
setName
Set the name of the Authentication Provider.- Parameters:
name
- the name of the Authentication Provider
-
getName
Return the name of the Authentication Provider.- Returns:
- the name of the Authentication Provider
-
doesUserExist
Return true if the user exists with the given authentication provider.- Specified by:
doesUserExist
in interfaceIUserQuery
- Parameters:
userId
- the unique user identifier (required)- Returns:
- true if the user exists with the given authentication provider
- See Also:
-
setPortal
Set the object portal.- Specified by:
setPortal
in interfaceIPortalAware
- Parameters:
portal
- the portal- See Also:
-