use of org.springframework.security.oauth.consumer.InMemoryProtectedResourceDetailsService in project spring-security-oauth by spring-projects.
the class ProtectedResourceDetailsServiceFactoryBean method createInstance.
@Override
protected ProtectedResourceDetailsService createInstance() throws Exception {
Map<String, ProtectedResourceDetails> detailsMap = BeanFactoryUtils.beansOfTypeIncludingAncestors((ListableBeanFactory) getBeanFactory(), ProtectedResourceDetails.class);
InMemoryProtectedResourceDetailsService service = new InMemoryProtectedResourceDetailsService();
service.setResourceDetailsStore(detailsMap);
return service;
}
Aggregations