Class SaltedDaoAuthenticationProvider

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

    public class SaltedDaoAuthenticationProvider
    extends org.springframework.security.authentication.dao.DaoAuthenticationProvider
    Legacy support for Salted Passwords.
    • 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 void additionalAuthenticationChecks​(org.springframework.security.core.userdetails.UserDetails details, org.springframework.security.authentication.UsernamePasswordAuthenticationToken auth)  
      org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      protected org.springframework.security.core.Authentication createSuccessAuthentication​(Object principal, org.springframework.security.core.Authentication authentication, org.springframework.security.core.userdetails.UserDetails user)  
      void setAuthoritiesMapper​(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper authoritiesMapper)  
      void setCurrentUserService​(CurrentUserService currentUserService)  
      void setUserService​(UserService userService)  
      void setVersionPrefix​(String prefix)  
      boolean supports​(Class authentication)  
      • Methods inherited from class org.springframework.security.authentication.dao.DaoAuthenticationProvider

        doAfterPropertiesSet, getPasswordEncoder, getUserDetailsService, retrieveUser, setPasswordEncoder, setUserDetailsPasswordService, setUserDetailsService
      • Methods inherited from class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider

        afterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache
    • Constructor Detail

      • SaltedDaoAuthenticationProvider

        public SaltedDaoAuthenticationProvider()
    • Method Detail

      • setUserService

        @Autowired
        public void setUserService​(UserService userService)
      • setCurrentUserService

        @Autowired
        public void setCurrentUserService​(CurrentUserService currentUserService)
      • setAuthoritiesMapper

        public void setAuthoritiesMapper​(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper authoritiesMapper)
        Overrides:
        setAuthoritiesMapper in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      • setVersionPrefix

        public void setVersionPrefix​(String prefix)
      • 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
      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Overrides:
        authenticate in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      • supports

        public boolean supports​(Class authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider
        Overrides:
        supports in class org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
      • additionalAuthenticationChecks

        protected void additionalAuthenticationChecks​(org.springframework.security.core.userdetails.UserDetails details,
                                                      org.springframework.security.authentication.UsernamePasswordAuthenticationToken auth)
                                               throws org.springframework.security.core.AuthenticationException
        Overrides:
        additionalAuthenticationChecks in class org.springframework.security.authentication.dao.DaoAuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException