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,OAuth2Authentication> authorizationCodeStore
           
 
Constructor Summary
InMemoryAuthorizationCodeServices()
           
 
Method Summary
 OAuth2Authentication remove(String code)
           
protected  void store(String code, OAuth2Authentication 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,OAuth2Authentication> authorizationCodeStore
Constructor Detail

InMemoryAuthorizationCodeServices

public InMemoryAuthorizationCodeServices()
Method Detail

store

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

remove

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


Copyright © 2013. All rights reserved.