Asylo
Public Member Functions | List of all members
asylo::SgxIdentityExpectationMatcher Class Referencefinal

SgxIdentityExpectationMatcher is capable of matching SGX identities with SGX identity expectations. More...

#include <sgx_identity_expectation_matcher.h>

Inheritance diagram for asylo::SgxIdentityExpectationMatcher:
Inheritance graph
[legend]
Collaboration diagram for asylo::SgxIdentityExpectationMatcher:
Collaboration graph
[legend]

Public Member Functions

 SgxIdentityExpectationMatcher ()=default
 
 ~SgxIdentityExpectationMatcher () override=default
 
StatusOr< bool > MatchAndExplain (const EnclaveIdentity &identity, const EnclaveIdentityExpectation &expectation, std::string *explanation) const override
 From the IdentityExpectationMatcher interface. More...
 
EnclaveIdentityDescription Description () const override
 From the NamedIdentityExpectationMatcher interface. More...
 
- Public Member Functions inherited from asylo::NamedIdentityExpectationMatcher
 NamedIdentityExpectationMatcher ()=default
 
 NamedIdentityExpectationMatcher (const NamedIdentityExpectationMatcher &other)=delete
 
 NamedIdentityExpectationMatcher (NamedIdentityExpectationMatcher &&other)=delete
 
NamedIdentityExpectationMatcheroperator= (const NamedIdentityExpectationMatcher &other)=delete
 
NamedIdentityExpectationMatcheroperator= (NamedIdentityExpectationMatcher &&other)=delete
 
- Public Member Functions inherited from asylo::IdentityExpectationMatcher
 IdentityExpectationMatcher ()=default
 
virtual ~IdentityExpectationMatcher ()=default
 
virtual StatusOr< bool > Match (const EnclaveIdentity &identity, const EnclaveIdentityExpectation &expectation) const
 Shim for MatchAndExplain that does not support an explanation output string. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from asylo::NamedIdentityExpectationMatcher
static StatusOr< std::string > GetMatcherName (const EnclaveIdentityDescription &description)
 Converts description to a name that can be used as a unique identifier for a NamedIdentityExpectationMatcher that handles identities/expectations of this description. More...
 

Detailed Description

SgxIdentityExpectationMatcher is capable of matching SGX identities with SGX identity expectations.

Constructor & Destructor Documentation

◆ SgxIdentityExpectationMatcher()

asylo::SgxIdentityExpectationMatcher::SgxIdentityExpectationMatcher ( )
default

◆ ~SgxIdentityExpectationMatcher()

asylo::SgxIdentityExpectationMatcher::~SgxIdentityExpectationMatcher ( )
overridedefault

Member Function Documentation

◆ Description()

EnclaveIdentityDescription asylo::SgxIdentityExpectationMatcher::Description ( ) const
overridevirtual

From the NamedIdentityExpectationMatcher interface.

Returns
A description of the enclave identities/enclave identity expectations this matcher is able to match.

Implements asylo::NamedIdentityExpectationMatcher.

◆ MatchAndExplain()

StatusOr<bool> asylo::SgxIdentityExpectationMatcher::MatchAndExplain ( const EnclaveIdentity &  identity,
const EnclaveIdentityExpectation &  expectation,
std::string *  explanation 
) const
overridevirtual

From the IdentityExpectationMatcher interface.

Parameters
identityAn identity to match.
expectationThe identity expectation to match against.
[out]explanationAn explanation of why the match failed, if the return value was false.
Returns
A bool indicating whether the match succeeded, or a non-OK Status in the case of invalid arguments.

Implements asylo::IdentityExpectationMatcher.


The documentation for this class was generated from the following file: