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

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

public class OAuthTokenDaoAPIv10aImpl
extends Object
implements OAuthTokenDao

OAuth 1.0a tokens in api.surfconext


Field Summary
static String SOURCE
           
 
Constructor Summary
OAuthTokenDaoAPIv10aImpl(org.springframework.jdbc.core.JdbcTemplate apiJdbcTemplate)
           
 
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

OAuthTokenDaoAPIv10aImpl

public OAuthTokenDaoAPIv10aImpl(org.springframework.jdbc.core.JdbcTemplate apiJdbcTemplate)
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.