An EnclaveAssertionAuthority is an authority for assertions of a particular identity type.
More...
#include <enclave_assertion_authority.h>
An EnclaveAssertionAuthority is an authority for assertions of a particular identity type.
An EnclaveAssertionAuthority is also identified by its authority type. The combination of identity type and authority type uniquely identifies an EnclaveAssertionAuthority.
EnclaveAssertionAuthority cannot be instantiated. It is an abstract interface that is intended to be extended by subclasses that define a particular set of operations on assertion authorities.
See EnclaveAssertionGenerator and EnclaveAssertionVerifier for examples of how the EnclaveAssertionAuthority interface can be extended.
◆ ~EnclaveAssertionAuthority()
virtual asylo::EnclaveAssertionAuthority::~EnclaveAssertionAuthority |
( |
| ) |
|
|
virtualdefault |
◆ AuthorityType()
virtual std::string asylo::EnclaveAssertionAuthority::AuthorityType |
( |
| ) |
const |
|
pure virtual |
◆ GenerateAuthorityId()
static StatusOr<std::string> asylo::EnclaveAssertionAuthority::GenerateAuthorityId |
( |
const EnclaveIdentityType & |
identity_type, |
|
|
const std::string & |
authority_type |
|
) |
| |
|
inlinestatic |
Gets a unique identifier for an EnclaveAssertionAuthority with the given identity_type
and authority_type
.
The identifier is a string that combines identity_type
and authority_type
. It can be used as a unique identifier for an authority that handles assertions for identity_type
and authority_type
.
- Parameters
-
identity_type | The identity type handled by the authority. |
authority_type | The authority type of the authority. |
- Returns
- The generated authority identifier on success, or a non-OK Status on failure.
◆ IdentityType()
virtual EnclaveIdentityType asylo::EnclaveAssertionAuthority::IdentityType |
( |
| ) |
const |
|
pure virtual |
◆ Initialize()
virtual Status asylo::EnclaveAssertionAuthority::Initialize |
( |
const std::string & |
config | ) |
|
|
pure virtual |
◆ IsCompatibleAssertionDescription()
bool asylo::EnclaveAssertionAuthority::IsCompatibleAssertionDescription |
( |
const AssertionDescription & |
description | ) |
const |
|
inlineprotected |
Indicates whether description
describes an assertion that is compatible with this authority.
This functionality is common to all assertion authorities and is provided for convenience of implementing more complex operations.
- Parameters
-
description | A description to check for compatibility. |
- Returns
- True if
description
is compatible with this authority.
◆ IsInitialized()
virtual bool asylo::EnclaveAssertionAuthority::IsInitialized |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: