nl.surfnet.coin.selfservice.dao.impl
Class OAuthTokenDaoAPIv10aImpl
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE
public static final String SOURCE
- See Also:
- Constant Field Values
OAuthTokenDaoAPIv10aImpl
public OAuthTokenDaoAPIv10aImpl(org.springframework.jdbc.core.JdbcTemplate apiJdbcTemplate)
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 userspEntityId - 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.