Package com.pingidentity.sdk.oauth20
Interface AccessTokenRevocable
-
public interface AccessTokenRevocableThis 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 ofBearerAccessTokenManagementPluginthat are able to revoke access tokens should implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessTokengetAccessToken(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 Detail
-
revokeAllAccessTokens
void revokeAllAccessTokens(String accessGrantGuid)
Revoke all access tokens associated with the persistent access grant guid- Parameters:
accessGrantGuid- the guid
-
revokeAllAccessTokensByClient
void revokeAllAccessTokensByClient(String clientId)
Revoke all access tokens associated with the client- Parameters:
clientId- The client ID to revoke tokens for
-
revokeAccessToken
boolean revokeAccessToken(String accessToken)
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
AccessToken getAccessToken(String rawAccessToken)
Gets theAccessTokenobject that represents theStringvalue of the access token- Parameters:
rawAccessToken- TheStringvalue of the access token- Returns:
- The
AccessToken
-
-