nvflare.private.privacy_manager module

class PrivacyManager(scopes: Union[None, List[Scope]], default_scope_name: Union[None, str], components: Union[None, dict])[source]

Bases: object

get_scope(name: Union[None, str])[source]
is_policy_defined()[source]
class PrivacyService[source]

Bases: object

static get_manager()[source]
static get_scope(name: Union[None, str])[source]
static initialize(manager: PrivacyManager)[source]
static is_policy_defined()[source]
static is_scope_allowed(scope_name: str)[source]

Check whether the specified scope is allowed

Parameters

scope_name – scope to be checked

Returns:

manager = None
class Scope[source]

Bases: object

add_task_data_filter(f: Filter)[source]
add_task_result_filter(f: Filter)[source]
set_name(name: str)[source]
set_props(props: dict)[source]