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

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

public class OAuthTokenDaoAPIv2Impl
extends Object
implements OAuthTokenDao

Implementation for OAuth v2 access keys from api.surfconext


Field Summary
static String SOURCE
           
 
Constructor Summary
OAuthTokenDaoAPIv2Impl(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

OAuthTokenDaoAPIv2Impl

public OAuthTokenDaoAPIv2Impl(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.