Expand description
The ‘whitelist’ module provides CRUD operations for managing a whitelist.
The whitelist is a HashMap where each principal is mapped to a boolean value.
A principal is considered whitelisted if it maps to true
.
Constants§
- A thread-local storage for the whitelist, mapping principals to their whitelisted status.
Functions§
- Adds a principal to the whitelist.
- Checks if a principal is whitelisted. Returns
true
if the principal is whitelisted, otherwisefalse
. - Removes a principal from the whitelist.