org.springframework.security.oauth.provider
Class InMemoryConsumerDetailsService
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryConsumerDetailsService
public InMemoryConsumerDetailsService()
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 © 2013. All rights reserved.