@Configuration @Conditional(value=OAuth2ResourceServerConfiguration.ResourceServerCondition.class) @ConditionalOnClass(value={org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer.class,SecurityProperties.class}) @ConditionalOnWebApplication @ConditionalOnBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration.class) @Import(value=ResourceServerTokenServicesConfiguration.class) public class OAuth2ResourceServerConfiguration extends Object
ResourceServerConfigurer
already exists or if resource server not enabled.Modifier and Type | Class and Description |
---|---|
protected static class |
OAuth2ResourceServerConfiguration.ResourceSecurityConfigurer |
protected static class |
OAuth2ResourceServerConfiguration.ResourceServerCondition |
Constructor and Description |
---|
OAuth2ResourceServerConfiguration(ResourceServerProperties resource) |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer |
resourceServer() |
static org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerConfiguration.ResourceServerFilterChainOrderProcessor |
resourceServerFilterChainOrderProcessor(ResourceServerProperties properties) |
public OAuth2ResourceServerConfiguration(ResourceServerProperties resource)
@Bean @ConditionalOnMissingBean(value=org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer.class) public org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer resourceServer()
@Bean public static org.springframework.boot.autoconfigure.security.oauth2.resource.OAuth2ResourceServerConfiguration.ResourceServerFilterChainOrderProcessor resourceServerFilterChainOrderProcessor(ResourceServerProperties properties)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.