org.springframework.security.oauth.consumer
Class InMemoryProtectedResourceDetailsService

java.lang.Object
  extended by org.springframework.security.oauth.consumer.InMemoryProtectedResourceDetailsService
All Implemented Interfaces:
ProtectedResourceDetailsService

public class InMemoryProtectedResourceDetailsService
extends Object
implements ProtectedResourceDetailsService

Basic, in-memory implementation of a protected resource details service.

Author:
Ryan Heaton

Constructor Summary
InMemoryProtectedResourceDetailsService()
           
 
Method Summary
 Map<String,? extends ProtectedResourceDetails> getResourceDetailsStore()
           
 ProtectedResourceDetails loadProtectedResourceDetailsById(String id)
          Load the details of a protected resource by id.
 void setResourceDetailsStore(Map<String,? extends ProtectedResourceDetails> resourceDetailsStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryProtectedResourceDetailsService

public InMemoryProtectedResourceDetailsService()
Method Detail

loadProtectedResourceDetailsById

public ProtectedResourceDetails loadProtectedResourceDetailsById(String id)
                                                          throws IllegalArgumentException
Description copied from interface: ProtectedResourceDetailsService
Load the details of a protected resource by id.

Specified by:
loadProtectedResourceDetailsById in interface ProtectedResourceDetailsService
Parameters:
id - The id.
Returns:
The protected resource details.
Throws:
IllegalArgumentException - If there are no details available for the given id.

getResourceDetailsStore

public Map<String,? extends ProtectedResourceDetails> getResourceDetailsStore()

setResourceDetailsStore

public void setResourceDetailsStore(Map<String,? extends ProtectedResourceDetails> resourceDetailsStore)


Copyright © 2012. All Rights Reserved.