code: public PlatformResponse revokeToken(String token) throws ConnectionException {
  
          logger.debug("Enter OAuth2PlatformClient::revokeToken");
          
          PlatformResponse platformResponse = new PlatformResponse();
          try {
              
              HttpRequestClient client = new HttpRequestClient(oauth2Config.getProxyConfig());
              Request request = new Request.RequestBuilder(MethodType.POST, oauth2Config.getIntuitRevokeTokenEndpoint())
                                          .requiresAuthentication(true)
                                          .authString(getAuthHeader())
                                          .postParams(getUrlParameters("revoke", token, null))
                                          .build();
  
              Response response = client.makeRequest(request);
              
              logger.debug("Response Code : "+ response.getStatusCode());
              if (response.getStatusCode() != 200) {
                  logger.debug("failed to revoke token");
                  platformResponse.setStatus("ERROR");
                  platformResponse.setErrorCode(response.getStatusCode() + "");
                  platformResponse.setErrorMessage("Failed to revoke token");
                  return platformResponse;
              }
              
              platformResponse.setStatus("SUCCESS");
              return platformResponse;
          }
          catch (Exception ex) {
              logger.error("Exception while calling revokeToken ", ex);
              throw new ConnectionException(ex.getMessage(), ex);
          }    
      }
docs: Method to revoke OAuth2 tokens
  
  @param token
  @return
  @throws ConnectionException