@Deprecated public final class ResourceServerSecurityConfigurer extends org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.web.DefaultSecurityFilterChain,org.springframework.security.config.annotation.web.builders.HttpSecurity>
| Constructor and Description |
|---|
ResourceServerSecurityConfigurer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceServerSecurityConfigurer |
accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler)
Deprecated.
|
ResourceServerSecurityConfigurer |
authenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
Deprecated.
Sets a custom
AuthenticationDetailsSource to use as a source
of authentication details. |
ResourceServerSecurityConfigurer |
authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
Deprecated.
|
ResourceServerSecurityConfigurer |
authenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
Deprecated.
|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Deprecated.
|
ResourceServerSecurityConfigurer |
eventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher eventPublisher)
Deprecated.
|
ResourceServerSecurityConfigurer |
expressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> expressionHandler)
Deprecated.
|
org.springframework.security.web.access.AccessDeniedHandler |
getAccessDeniedHandler()
Deprecated.
|
TokenStore |
getTokenStore()
Deprecated.
|
void |
init(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Deprecated.
|
ResourceServerSecurityConfigurer |
resourceId(String resourceId)
Deprecated.
|
ResourceServerSecurityConfigurer |
stateless(boolean stateless)
Deprecated.
Flag to indicate that only token-based authentication is allowed on these resources.
|
ResourceServerSecurityConfigurer |
tokenExtractor(TokenExtractor tokenExtractor)
Deprecated.
|
ResourceServerSecurityConfigurer |
tokenServices(ResourceServerTokenServices tokenServices)
Deprecated.
|
ResourceServerSecurityConfigurer |
tokenStore(TokenStore tokenStore)
Deprecated.
|
public ResourceServerSecurityConfigurer()
public TokenStore getTokenStore()
public ResourceServerSecurityConfigurer stateless(boolean stateless)
stateless - the flag value (default true)public ResourceServerSecurityConfigurer authenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
public ResourceServerSecurityConfigurer accessDeniedHandler(org.springframework.security.web.access.AccessDeniedHandler accessDeniedHandler)
public ResourceServerSecurityConfigurer tokenStore(TokenStore tokenStore)
public ResourceServerSecurityConfigurer eventPublisher(org.springframework.security.authentication.AuthenticationEventPublisher eventPublisher)
public ResourceServerSecurityConfigurer expressionHandler(org.springframework.security.access.expression.SecurityExpressionHandler<org.springframework.security.web.FilterInvocation> expressionHandler)
public ResourceServerSecurityConfigurer tokenExtractor(TokenExtractor tokenExtractor)
public ResourceServerSecurityConfigurer authenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
AuthenticationDetailsSource to use as a source
of authentication details. The default is OAuth2AuthenticationDetailsSource.authenticationDetailsSource - the custom AuthenticationDetailsSource to useResourceServerSecurityConfigurer for additional customizationpublic ResourceServerSecurityConfigurer authenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
public ResourceServerSecurityConfigurer tokenServices(ResourceServerTokenServices tokenServices)
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 ResourceServerSecurityConfigurer resourceId(String resourceId)
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>Exceptionpublic org.springframework.security.web.access.AccessDeniedHandler getAccessDeniedHandler()
Copyright © 2020. All rights reserved.