@Configuration @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() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurer |
resourceServer() |
@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 © 2015 Pivotal Software, Inc.. All rights reserved.