@Deprecated public final class AuthorizationServerSecurityConfigurer extends org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
| Constructor and Description |
|---|
AuthorizationServerSecurityConfigurer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
AuthorizationServerSecurityConfigurer |
accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler)
Deprecated.
|
AuthorizationServerSecurityConfigurer |
addAuthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
Deprecated.
Authentication provider(s) to use with the
AuthenticationManager. |
void |
addTokenEndpointAuthenticationFilter(javax.servlet.Filter filter)
Deprecated.
Adds a new custom authentication filter for the TokenEndpoint.
|
AuthorizationServerSecurityConfigurer |
allowFormAuthenticationForClients()
Deprecated.
|
AuthorizationServerSecurityConfigurer |
authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
Deprecated.
|
AuthorizationServerSecurityConfigurer |
authenticationEventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher authenticationEventPublisher)
Deprecated.
AuthenticationEventPublisher to use with the AuthenticationManager. |
AuthorizationServerSecurityConfigurer |
checkTokenAccess(String checkTokenAccess)
Deprecated.
|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Deprecated.
|
String |
getCheckTokenAccess()
Deprecated.
|
String |
getTokenKeyAccess()
Deprecated.
|
void |
init(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Deprecated.
|
AuthorizationServerSecurityConfigurer |
passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Deprecated.
|
AuthorizationServerSecurityConfigurer |
realm(String realm)
Deprecated.
|
AuthorizationServerSecurityConfigurer |
sslOnly()
Deprecated.
|
void |
tokenEndpointAuthenticationFilters(List<javax.servlet.Filter> filters)
Deprecated.
Sets a new list of custom authentication filters for the TokenEndpoint.
|
AuthorizationServerSecurityConfigurer |
tokenKeyAccess(String tokenKeyAccess)
Deprecated.
|
public AuthorizationServerSecurityConfigurer()
public AuthorizationServerSecurityConfigurer sslOnly()
public AuthorizationServerSecurityConfigurer allowFormAuthenticationForClients()
public AuthorizationServerSecurityConfigurer realm(String realm)
public AuthorizationServerSecurityConfigurer passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
public AuthorizationServerSecurityConfigurer authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
public AuthorizationServerSecurityConfigurer accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler)
public AuthorizationServerSecurityConfigurer addAuthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
AuthenticationManager.
Adding an authentication provider here will replace the default DaoAuthenticationProvider.authenticationProvider - the authentication provider to addpublic AuthorizationServerSecurityConfigurer authenticationEventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher authenticationEventPublisher)
AuthenticationEventPublisher to use with the AuthenticationManager.authenticationEventPublisher - the AuthenticationEventPublisher to usepublic AuthorizationServerSecurityConfigurer tokenKeyAccess(String tokenKeyAccess)
public AuthorizationServerSecurityConfigurer checkTokenAccess(String checkTokenAccess)
public String getTokenKeyAccess()
public String getCheckTokenAccess()
public void init(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
init in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>init in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>Exceptionpublic void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure in interface org.springframework.security.config.annotation.SecurityConfigurer<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>configure in class org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>Exceptionpublic void addTokenEndpointAuthenticationFilter(javax.servlet.Filter filter)
filter - public void tokenEndpointAuthenticationFilters(List<javax.servlet.Filter> filters)
filters - The authentication filters to set.Copyright © 2021. All rights reserved.