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 Details

    • 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 the AccessToken object that represents the String value of the access token
      Parameters:
      rawAccessToken - The String value of the access token
      Returns:
      The AccessToken