nvflare.app_opt.confidential_computing.cc_authorizer module

class CCAuthorizer[source]

Bases: ABC

Abstract base class for confidential computing authorizers

abstract generate() str[source]

Generates and returns the active CCAuthorizer token.

Returns:

token string

abstract get_namespace() str[source]

Returns the namespace of the CCAuthorizer.

Returns:

namespace string

abstract verify(token: str) bool[source]

Returns the token verification result.

Parameters:

token – str

Returns:

a boolean value indicating the token verification result

exception CCTokenGenerateError[source]

Bases: Exception

Raised when a CC token generation failed

exception CCTokenVerifyError[source]

Bases: Exception

Raised when a CC token verification failed