19 #ifndef ASYLO_IDENTITY_ATTESTATION_NULL_NULL_ASSERTION_VERIFIER_H_ 20 #define ASYLO_IDENTITY_ATTESTATION_NULL_NULL_ASSERTION_VERIFIER_H_ 24 #include "absl/synchronization/mutex.h" 25 #include "asylo/identity/attestation/enclave_assertion_verifier.h" 38 class NullAssertionVerifier
final :
public EnclaveAssertionVerifier {
70 bool initialized_ ABSL_GUARDED_BY(initialized_mu_);
73 mutable absl::Mutex initialized_mu_;
76 static const char *
const authority_type_;
79 static constexpr EnclaveIdentityType identity_type_ = NULL_IDENTITY;
bool IsInitialized() const override
Indicates whether this assertion authority has been initialized successfully via a call to Initialize...
NullAssertionVerifier()
Constructs an uninitialized NullAssertionVerifier.
EnclaveIdentityType IdentityType() const override
Gets the enclave identity type handled by this assertion authority.
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
StatusOr< bool > CanVerify(const AssertionOffer &offer) const override
Indicates whether the assertion offered in offer can be verified by this verifier.
Status Verify(const std::string &user_data, const Assertion &assertion, EnclaveIdentity *peer_identity) const override
Verifies an assertion that is compatible with this verifier's identity type and authority type...
Status Initialize(const std::string &config) override
Initializes this assertion authority using the provided config.
std::string AuthorityType() const override
Gets the type of this assertion authority.
Status CreateAssertionRequest(AssertionRequest *request) const override
Creates an assertion request compatible with this verifier's identity type and authority type and pla...