nvflare.app_opt.confidential_computing.cc_authorizer module

class CCAuthorizer[source]

Bases: ABC

abstract generate() str[source]

To generate and return the active CCAuthorizer token.

Returns: token string

abstract get_namespace() str[source]

This returns the namespace of the CCAuthorizer.

Returns: namespace string

abstract verify(token: str) bool[source]

To return the token verification result.

Parameters:

token – bool

Returns:

exception CCTokenGenerateError[source]

Bases: Exception

Raised when a CC token generation failed

exception CCTokenVerifyError[source]

Bases: Exception

Raised when a CC token verification failed