Example usage for org.springframework.security.config.annotation.authentication.configuration AuthenticationConfiguration getAuthenticationManager

List of usage examples for org.springframework.security.config.annotation.authentication.configuration AuthenticationConfiguration getAuthenticationManager

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.authentication.configuration AuthenticationConfiguration getAuthenticationManager.

Prototype

public AuthenticationManager getAuthenticationManager() throws Exception 

Source Link

Usage

From source file:org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.java

@Bean
@Primary//ww  w.  j av  a2  s . c o  m
public AuthenticationManager authenticationManager(AuthenticationConfiguration configuration) throws Exception {
    return configuration.getAuthenticationManager();
}