Flush any caches that are tied to the (compromised) access_token
| 109 | |
| 110 | // Flush any caches that are tied to the (compromised) access_token |
| 111 | void KeyToolkit::RemoveCacheEntriesForToken(const std::string& access_token) { |
| 112 | kms_client_cache_per_token().Remove(access_token); |
| 113 | kek_write_cache_per_token().Remove(access_token); |
| 114 | kek_read_cache_per_token().Remove(access_token); |
| 115 | } |
| 116 | |
| 117 | void KeyToolkit::RemoveCacheEntriesForAllTokens() { |
| 118 | kms_client_cache_per_token().Clear(); |
no test coverage detected