nl.surfnet.coin.selfservice.dao.impl
Class OAuthTokenDaoShindigImpl

java.lang.Object
  extended by nl.surfnet.coin.selfservice.dao.impl.OAuthTokenDaoShindigImpl
All Implemented Interfaces:
OAuthTokenDao

public class OAuthTokenDaoShindigImpl
extends Object
implements OAuthTokenDao

Gets OAuthTokens from the Shindig (os.surfconext.nl) database


Field Summary
static String SOURCE
           
 
Constructor Summary
OAuthTokenDaoShindigImpl(org.springframework.jdbc.core.JdbcTemplate shindigJdbcTemplate)
           
 
Method Summary
 List<OAuthTokenInfo> getOAuthTokens(String userId, String spEntityId)
          Gets a List of OAuthTokenInfo for a user
 void revokeOAuthToken(OAuthTokenInfo oAuthTokenInfo)
          Revokes an existing OAuthToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE

public static final String SOURCE
See Also:
Constant Field Values
Constructor Detail

OAuthTokenDaoShindigImpl

public OAuthTokenDaoShindigImpl(org.springframework.jdbc.core.JdbcTemplate shindigJdbcTemplate)
Method Detail

getOAuthTokens

public List<OAuthTokenInfo> getOAuthTokens(String userId,
                                           String spEntityId)
Description copied from interface: OAuthTokenDao
Gets a List of OAuthTokenInfo for a user

Specified by:
getOAuthTokens in interface OAuthTokenDao
Parameters:
userId - unique identifier of a user
spEntityId - unique identifier of a ServiceProvider
Returns:
List of OAuthTokenInfo, can be empty

revokeOAuthToken

public void revokeOAuthToken(OAuthTokenInfo oAuthTokenInfo)
Description copied from interface: OAuthTokenDao
Revokes an existing OAuthToken

Specified by:
revokeOAuthToken in interface OAuthTokenDao
Parameters:
oAuthTokenInfo - the OAuthTokenInfo to revoke


Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.