nvflare.app_opt.confidential_computing.mock_authorizer module

class MockAuthorizer[source]

Bases: CCAuthorizer

generate()[source]

Generates and returns the active CCAuthorizer token.

Returns:

token string

get_namespace() str[source]

Returns the namespace of the CCAuthorizer.

Returns:

namespace string

verify(token)[source]

Returns the token verification result.

Parameters:

token – str

Returns:

a boolean value indicating the token verification result