Search in sources :

Example 1 with InMemoryProtectedResourceDetailsService

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;
}
Also used : InMemoryProtectedResourceDetailsService(org.springframework.security.oauth.consumer.InMemoryProtectedResourceDetailsService) ProtectedResourceDetails(org.springframework.security.oauth.consumer.ProtectedResourceDetails)

Aggregations

InMemoryProtectedResourceDetailsService (org.springframework.security.oauth.consumer.InMemoryProtectedResourceDetailsService)1 ProtectedResourceDetails (org.springframework.security.oauth.consumer.ProtectedResourceDetails)1