nl.surfnet.coin.api.client
Class InMemoryOAuthRepositoryImpl

java.lang.Object
  extended by nl.surfnet.coin.api.client.InMemoryOAuthRepositoryImpl
All Implemented Interfaces:
OAuthRepository

public class InMemoryOAuthRepositoryImpl
extends Object
implements OAuthRepository

InMemory Repository for Tokens


Constructor Summary
InMemoryOAuthRepositoryImpl()
           
 
Method Summary
 OAuthToken getToken(String userId)
           
 void removeToken(String onBehalfOf)
           
 void storeToken(org.scribe.model.Token accessToken, String userId, OAuthVersion version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryOAuthRepositoryImpl

public InMemoryOAuthRepositoryImpl()
Method Detail

getToken

public OAuthToken getToken(String userId)
Specified by:
getToken in interface OAuthRepository

storeToken

public void storeToken(org.scribe.model.Token accessToken,
                       String userId,
                       OAuthVersion version)
Specified by:
storeToken in interface OAuthRepository

removeToken

public void removeToken(String onBehalfOf)
Specified by:
removeToken in interface OAuthRepository


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.