@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class MainSecurity
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| Modifier and Type | Field and Description |
|---|---|
(package private) JwtEntryPoint |
jwtEntryPoint |
(package private) UsuarioServiceImpl |
usuarioService |
| Constructor and Description |
|---|
MainSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.authentication.AuthenticationManager |
authenticationManager() |
org.springframework.security.authentication.AuthenticationManager |
authenticationManagerBean() |
protected void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) |
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
JwtTokenFilter |
jwtTokenFilter() |
org.springframework.security.crypto.password.PasswordEncoder |
passwordEncoder() |
configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean@Autowired UsuarioServiceImpl usuarioService
@Autowired JwtEntryPoint jwtEntryPoint
@Bean public JwtTokenFilter jwtTokenFilter()
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws java.lang.Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterjava.lang.Exception@Bean
public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
throws java.lang.Exception
authenticationManagerBean in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterjava.lang.Exceptionprotected org.springframework.security.authentication.AuthenticationManager authenticationManager()
throws java.lang.Exception
authenticationManager in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterjava.lang.Exceptionprotected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws java.lang.Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterjava.lang.Exception