org.springframework.security.oauth2.client
Class InMemoryOAuth2ProtectedResourceDetailsService

java.lang.Object
  extended by org.springframework.security.oauth2.client.InMemoryOAuth2ProtectedResourceDetailsService
All Implemented Interfaces:
OAuth2ProtectedResourceDetailsService

public class InMemoryOAuth2ProtectedResourceDetailsService
extends Object
implements OAuth2ProtectedResourceDetailsService

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

Author:
Ryan Heaton

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

Constructor Detail

InMemoryOAuth2ProtectedResourceDetailsService

public InMemoryOAuth2ProtectedResourceDetailsService()
Method Detail

loadProtectedResourceDetailsById

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

Specified by:
loadProtectedResourceDetailsById in interface OAuth2ProtectedResourceDetailsService
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 OAuth2ProtectedResourceDetails> getResourceDetailsStore()

setResourceDetailsStore

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


Copyright © 2011. All Rights Reserved.