Example usage for org.springframework.security.authentication.dao DaoAuthenticationProvider setMessageSource

List of usage examples for org.springframework.security.authentication.dao DaoAuthenticationProvider setMessageSource

Introduction

In this page you can find the example usage for org.springframework.security.authentication.dao DaoAuthenticationProvider setMessageSource.

Prototype

public void setMessageSource(MessageSource messageSource) 

Source Link

Usage

From source file:ru.mystamps.web.support.spring.security.SecurityConfig.java

@Bean
public AuthenticationProvider getAuthenticationProvider() {
    DaoAuthenticationProvider provider = new DaoAuthenticationProvider();
    provider.setPasswordEncoder(getPasswordEncoder());
    provider.setUserDetailsService(getUserDetailsService());
    provider.setMessageSource(messageSource);
    return provider;
}