ITokenStoreQuery Interface
public interface ITokenStoreQuery
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
clearTokensForUser(String userId)
Clear tokens for given user. |
Iterator<Token |
getAll() |
List<Token |
getTokensAboutToExpire() |
List<Token |
getTokensForResource(String resource) |
List<Token |
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
getTokensAboutToExpire
getTokensForResource
public List
Parameters:
resource
- The resource to retrieve the token for.
Returns:
List of TokenCacheItems for the given resource.
getTokensForUser
public List
Parameters:
userid
- The user id to retrieve the token for.
Returns:
List of tokens for the given user id.
getUniqueUsersWithTokenCache
public Set
Returns:
Set of unique users in the token cache.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for