org.springframework.security.oauth2.provider
Class InMemoryClientDetailsService

java.lang.Object
  extended by org.springframework.security.oauth2.provider.InMemoryClientDetailsService
All Implemented Interfaces:
ClientDetailsService

public class InMemoryClientDetailsService
extends Object
implements ClientDetailsService

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

Author:
Ryan Heaton

Constructor Summary
InMemoryClientDetailsService()
           
 
Method Summary
 Map<String,? extends ClientDetails> getClientDetailsStore()
           
 ClientDetails loadClientByClientId(String clientId)
          Load a client by the client id.
 void setClientDetailsStore(Map<String,? extends ClientDetails> clientDetailsStore)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryClientDetailsService

public InMemoryClientDetailsService()
Method Detail

loadClientByClientId

public ClientDetails loadClientByClientId(String clientId)
                                   throws OAuth2Exception
Description copied from interface: ClientDetailsService
Load a client by the client id. This method must NOT return null.

Specified by:
loadClientByClientId in interface ClientDetailsService
Parameters:
clientId - The client id.
Returns:
The client details.
Throws:
OAuth2Exception - If the client account is locked, expired, disabled, or for any other reason.

getClientDetailsStore

public Map<String,? extends ClientDetails> getClientDetailsStore()

setClientDetailsStore

public void setClientDetailsStore(Map<String,? extends ClientDetails> clientDetailsStore)


Copyright © 2012. All Rights Reserved.