@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() |
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()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.