nl.surfnet.coin.selfservice.service.impl
Class OAuthTokenServiceImpl

java.lang.Object
  extended by nl.surfnet.coin.selfservice.service.impl.OAuthTokenServiceImpl
All Implemented Interfaces:
OAuthTokenService

public class OAuthTokenServiceImpl
extends Object
implements OAuthTokenService

Implementation of OAuthTokenService


Constructor Summary
OAuthTokenServiceImpl()
           
 
Method Summary
 List<OAuthTokenInfo> getOAuthTokenInfoList(String userId, ServiceProvider serviceProvider)
          Gets a List of OAuthTokenInfo for a user
 void revokeOAuthTokens(String userId, ServiceProvider serviceProvider)
          Revokes an existing OAuthToken
 void setoAuthTokenDaos(List<OAuthTokenDao> oAuthTokenDaos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthTokenServiceImpl

public OAuthTokenServiceImpl()
Method Detail

getOAuthTokenInfoList

public List<OAuthTokenInfo> getOAuthTokenInfoList(String userId,
                                                  ServiceProvider serviceProvider)
Description copied from interface: OAuthTokenService
Gets a List of OAuthTokenInfo for a user

Specified by:
getOAuthTokenInfoList in interface OAuthTokenService
Parameters:
userId - unique identifier of a user
serviceProvider - ServiceProvider which can be linked to the OAuth token
Returns:
List of OAuthTokenInfo, can be empty

revokeOAuthTokens

public void revokeOAuthTokens(String userId,
                              ServiceProvider serviceProvider)
Description copied from interface: OAuthTokenService
Revokes an existing OAuthToken

Specified by:
revokeOAuthTokens in interface OAuthTokenService
Parameters:
userId - unique identifier of a user
serviceProvider - ServiceProvider of which the tokens should be revoked

setoAuthTokenDaos

public void setoAuthTokenDaos(List<OAuthTokenDao> oAuthTokenDaos)


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