19 #ifndef ASYLO_IDENTITY_NAMED_IDENTITY_EXPECTATION_MATCHER_H_ 20 #define ASYLO_IDENTITY_NAMED_IDENTITY_EXPECTATION_MATCHER_H_ 24 #include "asylo/identity/identity.pb.h" 25 #include "asylo/identity/identity_expectation_matcher.h" 26 #include "asylo/platform/common/static_map.h" 27 #include "asylo/util/statusor.h" 72 struct Namer<NamedIdentityExpectationMatcher> {
74 return NamedIdentityExpectationMatcher::GetMatcherName(
75 matcher.Description())
DEFINE_STATIC_MAP_OF_BASE_TYPE(IdentityExpectationMatcherMap, NamedIdentityExpectationMatcher)
NamedIdentityExpectationMatcher()=default
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
A NamedIdentityExpectationMatcher is capable of matching an identity to an expectation if the identit...
Definition: named_identity_expectation_matcher.h:37
static StatusOr< std::string > GetMatcherName(const EnclaveIdentityDescription &description)
Converts description to a name that can be used as a unique identifier for a NamedIdentityExpectation...
std::string operator()(const NamedIdentityExpectationMatcher &matcher)
Definition: named_identity_expectation_matcher.h:73
NamedIdentityExpectationMatcher & operator=(const NamedIdentityExpectationMatcher &other)=delete
NamedIdentityExpectationMatcher(const NamedIdentityExpectationMatcher &other)=delete
virtual EnclaveIdentityDescription Description() const =0
Returns the description of the enclave identities/enclave identity expectations this matcher is able ...
NamedIdentityExpectationMatcher(NamedIdentityExpectationMatcher &&other)=delete
NamedIdentityExpectationMatcher & operator=(NamedIdentityExpectationMatcher &&other)=delete