org.springframework.security.oauth2.provider.code
Class InMemoryAuthorizationCodeServices

java.lang.Object
  extended by org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
      extended by org.springframework.security.oauth2.provider.code.InMemoryAuthorizationCodeServices
All Implemented Interfaces:
AuthorizationCodeServices

public class InMemoryAuthorizationCodeServices
extends RandomValueAuthorizationCodeServices

Implementation of authorization code services that stores the codes and authentication in memory.

Author:
Ryan Heaton, Dave Syer

Field Summary
protected  ConcurrentHashMap<String,AuthorizationRequestHolder> authorizationCodeStore
           
 
Constructor Summary
InMemoryAuthorizationCodeServices()
           
 
Method Summary
 AuthorizationRequestHolder remove(String code)
           
protected  void store(String code, AuthorizationRequestHolder authentication)
           
 
Methods inherited from class org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
consumeAuthorizationCode, createAuthorizationCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authorizationCodeStore

protected final ConcurrentHashMap<String,AuthorizationRequestHolder> authorizationCodeStore
Constructor Detail

InMemoryAuthorizationCodeServices

public InMemoryAuthorizationCodeServices()
Method Detail

store

protected void store(String code,
                     AuthorizationRequestHolder authentication)
Specified by:
store in class RandomValueAuthorizationCodeServices

remove

public AuthorizationRequestHolder remove(String code)
Specified by:
remove in class RandomValueAuthorizationCodeServices


Copyright © 2012. All Rights Reserved.