ITokenStoreQuery Interface

public interface ITokenStoreQuery

Method Summary

Modifier and Type Method and Description
void clearTokensForUser(String userId)

Clear tokens for given user.

Iterator<TokenCacheItem> getAll()
List<TokenCacheItem> getTokensAboutToExpire()
List<TokenCacheItem> getTokensForResource(String resource)
List<TokenCacheItem> getTokensForUser(String userid)
Set<String> getUniqueUsersWithTokenCache()

Method Details

clearTokensForUser

public void clearTokensForUser(String userId)

Clear tokens for given user.

Parameters:

userId - The unique user id to clear the token for.

getAll

public Iterator getAll()

Returns:

Iterator of all the TokenCacheItems.

getTokensAboutToExpire

public List getTokensAboutToExpire()

Returns:

A List of TokenCacheItems that are going to expire.

getTokensForResource

public List getTokensForResource(String resource)

Parameters:

resource - The resource to retrieve the token for.

Returns:

List of TokenCacheItems for the given resource.

getTokensForUser

public List getTokensForUser(String userid)

Parameters:

userid - The user id to retrieve the token for.

Returns:

List of tokens for the given user id.

getUniqueUsersWithTokenCache

public Set getUniqueUsersWithTokenCache()

Returns:

Set of unique users in the token cache.

Applies to