19 #ifndef ASYLO_IDENTITY_ATTESTATION_NULL_NULL_ASSERTION_GENERATOR_H_ 20 #define ASYLO_IDENTITY_ATTESTATION_NULL_NULL_ASSERTION_GENERATOR_H_ 24 #include "absl/synchronization/mutex.h" 25 #include "asylo/identity/attestation/enclave_assertion_generator.h" 35 class NullAssertionGenerator
final :
public EnclaveAssertionGenerator {
68 bool IsValidAssertionRequest(
const AssertionRequest &request)
const;
71 bool initialized_ ABSL_GUARDED_BY(initialized_mu_);
74 mutable absl::Mutex initialized_mu_;
77 static const char *
const authority_type_;
80 static constexpr EnclaveIdentityType identity_type_ = NULL_IDENTITY;
Status Initialize(const std::string &config) override
Initializes this assertion authority using the provided config.
EnclaveIdentityType IdentityType() const override
Gets the enclave identity type handled by this assertion authority.
bool IsInitialized() const override
Indicates whether this assertion authority has been initialized successfully via a call to Initialize...
StatusOr< bool > CanGenerate(const AssertionRequest &request) const override
Indicates whether the assertion requested in request can be generated by this generator.
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
std::string AuthorityType() const override
Gets the type of this assertion authority.
NullAssertionGenerator()
Constructs an uninitialized NullAssertionGenerator.
Status CreateAssertionOffer(AssertionOffer *offer) const override
Creates an assertion offer compatible with this generator's identity type and authority type and plac...
Status Generate(const std::string &user_data, const AssertionRequest &request, Assertion *assertion) const override
Generates an assertion that satisfies the given request, if request is compatible with this generator...