nvflare.app_opt.confidential_computing.tdx_authorizer module

class TDXAuthorizer(tdx_cli_command: str, config_dir: str)[source]

Bases: CCAuthorizer

Intel TDX Authorizer

Initialize the TDXAuthorizer

Parameters:
  • tdx_cli_command (str) – The command to run the TDX CLI

  • config_dir (str) – The directory to store the TDX CLI configuration and token

generate() str[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: str) bool[source]

Returns the token verification result.

Parameters:

token – str

Returns:

a boolean value indicating the token verification result