The DaoAuthenticationProvider accepts org.springframework.security.authentication.encoding.PasswordEncoder or org.springframework.security.crypto.password.PasswordEncoder