Class DbAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware, org.springframework.security.authentication.AuthenticationProvider

    public class DbAuthenticationProvider
    extends org.springframework.security.authentication.dao.DaoAuthenticationProvider
    Extension of DaoAuthenticationProvider that returns an instance of AuthenticatedUser
    Since:
    4.0
    Author:
    joseross
    • 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
      protected org.springframework.security.core.Authentication createSuccessAuthentication​(Object principal, org.springframework.security.core.Authentication authentication, org.springframework.security.core.userdetails.UserDetails user)  
      • Methods inherited from class org.springframework.security.authentication.dao.DaoAuthenticationProvider

        additionalAuthenticationChecks, 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

      • DbAuthenticationProvider

        public DbAuthenticationProvider()
    • Method Detail

      • createSuccessAuthentication

        protected org.springframework.security.core.Authentication createSuccessAuthentication​(Object principal,
                                                                                               org.springframework.security.core.Authentication authentication,
                                                                                               org.springframework.security.core.userdetails.UserDetails user)
        Overrides:
        createSuccessAuthentication in class org.springframework.security.authentication.dao.DaoAuthenticationProvider