19 #ifndef ASYLO_IDENTITY_ATTESTATION_ENCLAVE_ASSERTION_VERIFIER_H_ 20 #define ASYLO_IDENTITY_ATTESTATION_ENCLAVE_ASSERTION_VERIFIER_H_ 24 #include "asylo/identity/enclave_assertion_authority.h" 25 #include "asylo/identity/identity.pb.h" 26 #include "asylo/platform/common/static_map.h" 27 #include "asylo/util/status.h" 28 #include "asylo/util/statusor.h" 88 struct Namer<EnclaveAssertionVerifier> {
90 return EnclaveAssertionAuthority::GenerateAuthorityId(
91 verifier.IdentityType(), verifier.AuthorityType())
96 DEFINE_STATIC_MAP_OF_BASE_TYPE(AssertionVerifierMap, EnclaveAssertionVerifier);
virtual Status CreateAssertionRequest(AssertionRequest *request) const =0
Creates an assertion request compatible with this verifier's identity type and authority type and pla...
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
virtual StatusOr< bool > CanVerify(const AssertionOffer &offer) const =0
Indicates whether the assertion offered in offer can be verified by this verifier.
virtual Status Verify(const std::string &user_data, const Assertion &assertion, EnclaveIdentity *peer_identity) const =0
Verifies an assertion that is compatible with this verifier's identity type and authority type...
Defines an interface for assertion authorities that generate assertion requests and verify assertions...
Definition: enclave_assertion_verifier.h:45