Package com.pingidentity.sdk.oauth20
Interface AccessTokenRevocable
public interface AccessTokenRevocable
This interface defines the methods that the PingFederate can optionally call when a persistent grant is revoked, or
when an access token needs to be revoked. Implementations of
BearerAccessTokenManagementPlugin that are able
to revoke access tokens should implement this interface.-
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(String rawAccessToken) Gets theAccessTokenobject that represents theStringvalue of the access tokenbooleanrevokeAccessToken(String accessToken) Revoke an individial access tokenvoidrevokeAllAccessTokens(String accessGrantGuid) Revoke all access tokens associated with the persistent access grant guidvoidrevokeAllAccessTokensByClient(String clientId) Revoke all access tokens associated with the client
-
Method Details
-
revokeAllAccessTokens
Revoke all access tokens associated with the persistent access grant guid- Parameters:
accessGrantGuid- the guid
-
revokeAllAccessTokensByClient
Revoke all access tokens associated with the client- Parameters:
clientId- The client ID to revoke tokens for
-
revokeAccessToken
Revoke an individial access token- Parameters:
accessToken- The specified access token to revoke- Returns:
- True if the access token was revoked, or false if the token is invalid or doesn't exist
-
getAccessToken
Gets theAccessTokenobject that represents theStringvalue of the access token- Parameters:
rawAccessToken- TheStringvalue of the access token- Returns:
- The
AccessToken
-