public class TokenInvalidator extends Object
Modifier and Type | Field and Description |
---|---|
static CoreTokenField |
CLIENT_ID_FIELD |
static CoreTokenField |
GRANT_ID_FIELD |
static CoreTokenField |
USERNAME_FIELD |
Constructor and Description |
---|
TokenInvalidator(TokenStore tokenStore,
OAuth2RealmResolver realmResolver)
Constructs a new TokenInvalidator.
|
Modifier and Type | Method and Description |
---|---|
void |
invalidateTokens(OAuth2Request request,
String clientId,
String userName,
String authGrantId)
Invalidates all tokens associated with same auth grant, client and resource owner.
|
public static final CoreTokenField GRANT_ID_FIELD
public static final CoreTokenField CLIENT_ID_FIELD
public static final CoreTokenField USERNAME_FIELD
@Inject public TokenInvalidator(TokenStore tokenStore, OAuth2RealmResolver realmResolver)
tokenStore
- An instance of the TokenStore.realmResolver
- An instance of the OAuth2RealmResolverpublic void invalidateTokens(OAuth2Request request, String clientId, String userName, String authGrantId) throws ServerException, NotFoundException
request
- The request.clientId
- The client id.userName
- The username denoting the resource owner idauthGrantId
- The auth grant id.ServerException
NotFoundException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.