A NamedIdentityExpectationMatcher
is capable of matching an identity to an expectation if the identity and the expectation's reference identity have the same identity descriptions, and they match the identity description returned by the Description()
method of the matcher.
More...
#include <named_identity_expectation_matcher.h>
A NamedIdentityExpectationMatcher
is capable of matching an identity to an expectation if the identity and the expectation's reference identity have the same identity descriptions, and they match the identity description returned by the Description()
method of the matcher.
A NamedIdentityExpectationMatcher
is assigned a name based on the identity description it handles. All subclasses of this class must be marked final
.
◆ NamedIdentityExpectationMatcher() [1/3]
asylo::NamedIdentityExpectationMatcher::NamedIdentityExpectationMatcher |
( |
| ) |
|
|
default |
◆ NamedIdentityExpectationMatcher() [2/3]
◆ NamedIdentityExpectationMatcher() [3/3]
◆ Description()
virtual EnclaveIdentityDescription asylo::NamedIdentityExpectationMatcher::Description |
( |
| ) |
const |
|
pure virtual |
Returns the description of the enclave identities/enclave identity expectations this matcher is able to match.
If the MatchAndExplain()
method of this matcher is invoked with an identity or expectation with a different description, the matcher returns a non-OK status.
- Returns
- A description of the enclave identities/enclave identity expectations this matcher is able to match.
Implemented in asylo::SgxIdentityExpectationMatcher.
◆ GetMatcherName()
static StatusOr<std::string> asylo::NamedIdentityExpectationMatcher::GetMatcherName |
( |
const EnclaveIdentityDescription & |
description | ) |
|
|
static |
Converts description
to a name that can be used as a unique identifier for a NamedIdentityExpectationMatcher
that handles identities/expectations of this description.
- Parameters
-
description | The description to get a name for. |
- Returns
- A unique identifying string for
description
.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: