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() |
Modifier and Type | Method and Description |
---|---|
AuthorizationServerSecurityConfigurer |
accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler) |
void |
addTokenEndpointAuthenticationFilter(javax.servlet.Filter filter)
Adds a new custom authentication filter for the TokenEndpoint.
|
AuthorizationServerSecurityConfigurer |
allowFormAuthenticationForClients() |
AuthorizationServerSecurityConfigurer |
authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint) |
AuthorizationServerSecurityConfigurer |
checkTokenAccess(String checkTokenAccess) |
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
String |
getCheckTokenAccess() |
String |
getTokenKeyAccess() |
void |
init(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
AuthorizationServerSecurityConfigurer |
passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) |
AuthorizationServerSecurityConfigurer |
realm(String realm) |
AuthorizationServerSecurityConfigurer |
sslOnly() |
void |
tokenEndpointAuthenticationFilters(List<javax.servlet.Filter> filters)
Sets a new list of custom authentication filters for the TokenEndpoint.
|
AuthorizationServerSecurityConfigurer |
tokenKeyAccess(String tokenKeyAccess) |
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 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>
Exception
public 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>
Exception
public void addTokenEndpointAuthenticationFilter(javax.servlet.Filter filter)
filter
- public void tokenEndpointAuthenticationFilters(List<javax.servlet.Filter> filters)
filters
- The authentication filters to set.Copyright © 2019. All rights reserved.