Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doesUserExist​(String userId)
      Return true if the user exists with the given authentication provider.
      String getName()
      Return the name of the Authentication Provider.
      void setName​(String name)
      Set the name of the Authentication Provider.
      void setPortal​(Portal portal)
      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 Detail

      • LocalUserDetailsAuthenticationProvider

        public LocalUserDetailsAuthenticationProvider()
        Create a LocalAuthenticationProvider and initialize the default properties.
    • Method Detail

      • setName

        public void setName​(String name)
        Set the name of the Authentication Provider.
        Parameters:
        name - the name of the Authentication Provider
      • getName

        public String getName()
        Return the name of the Authentication Provider.
        Returns:
        the name of the Authentication Provider
      • doesUserExist

        public boolean doesUserExist​(String userId)
        Return true if the user exists with the given authentication provider.
        Specified by:
        doesUserExist in interface IUserQuery
        Parameters:
        userId - the unique user identifier (required)
        Returns:
        true if the user exists with the given authentication provider
        See Also:
        IUserQuery.doesUserExist(String)