nl.surfnet.coin.csa.dao
Interface OAuthTokenDao


public interface OAuthTokenDao

DAO to retrieve OAuth tokens


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
 

Method Detail

getOAuthTokens

List<OAuthTokenInfo> getOAuthTokens(String userId,
                                    String spEntityId)
Gets a List of OAuthTokenInfo for a user

Parameters:
userId - unique identifier of a user
spEntityId - unique identifier of a ServiceProvider
Returns:
List of OAuthTokenInfo, can be empty

revokeOAuthToken

void revokeOAuthToken(OAuthTokenInfo oAuthTokenInfo)
Revokes an existing OAuthToken

Parameters:
oAuthTokenInfo - the OAuthTokenInfo to revoke


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