org.springframework.security.oauth.provider
Class InMemoryConsumerDetailsService

java.lang.Object
  extended by org.springframework.security.oauth.provider.InMemoryConsumerDetailsService
All Implemented Interfaces:
ConsumerDetailsService

public class InMemoryConsumerDetailsService
extends Object
implements ConsumerDetailsService

Basic, in-memory implementation of the consumer details service.

Author:
Ryan Heaton

Constructor Summary
InMemoryConsumerDetailsService()
           
 
Method Summary
 Map<String,? extends ConsumerDetails> getConsumerDetailsStore()
           
 ConsumerDetails loadConsumerByConsumerKey(String consumerKey)
          Load a consumer by the consumer key.
 void setConsumerDetailsStore(Map<String,? extends ConsumerDetails> consumerDetailsStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryConsumerDetailsService

public InMemoryConsumerDetailsService()
Method Detail

loadConsumerByConsumerKey

public ConsumerDetails loadConsumerByConsumerKey(String consumerKey)
                                          throws OAuthException
Description copied from interface: ConsumerDetailsService
Load a consumer by the consumer key. This method must NOT return null.

Specified by:
loadConsumerByConsumerKey in interface ConsumerDetailsService
Parameters:
consumerKey - The consumer key.
Returns:
The consumer details.
Throws:
OAuthException - If the consumer account is locked, expired, disabled, or for any other reason.

getConsumerDetailsStore

public Map<String,? extends ConsumerDetails> getConsumerDetailsStore()

setConsumerDetailsStore

public void setConsumerDetailsStore(Map<String,? extends ConsumerDetails> consumerDetailsStore)


Copyright © 2012. All Rights Reserved.