19 #ifndef ASYLO_IDENTITY_ATTESTATION_SGX_SGX_AGE_REMOTE_ASSERTION_GENERATOR_H_ 20 #define ASYLO_IDENTITY_ATTESTATION_SGX_SGX_AGE_REMOTE_ASSERTION_GENERATOR_H_ 25 #include "asylo/crypto/certificate.pb.h" 26 #include "asylo/crypto/certificate_util.h" 27 #include "asylo/identity/attestation/enclave_assertion_generator.h" 28 #include "asylo/identity/attestation/sgx/internal/sgx_remote_assertion_generator_client.h" 29 #include "asylo/identity/identity.pb.h" 30 #include "asylo/util/mutex_guarded.h" 31 #include "asylo/util/status.h" 32 #include "asylo/util/statusor.h" 41 class SgxAgeRemoteAssertionGenerator
final :
public EnclaveAssertionGenerator {
73 static constexpr EnclaveIdentityType kIdentityType = CODE_IDENTITY;
76 static const char *
const kAuthorityType;
81 std::vector<Certificate> root_ca_certificates;
84 CertificateInterfaceVector root_ca_certificate_interfaces;
87 std::string server_address;
92 Members() : initialized(
false) {}
95 MutexGuarded<Members> members_;
Status Generate(const std::string &user_data, const AssertionRequest &request, Assertion *assertion) const override
Generates an assertion that satisfies the given request, if request is compatible with this generator...
SgxAgeRemoteAssertionGenerator()
Constructs an uninitialized SgxAgeRemoteAssertionGenerator.
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
Status CreateAssertionOffer(AssertionOffer *offer) const override
Creates an assertion offer compatible with this generator's identity type and authority type and plac...
EnclaveIdentityType IdentityType() const override
Gets the enclave identity type handled by this assertion authority.
std::string AuthorityType() const override
Gets the type of this assertion authority.
StatusOr< bool > CanGenerate(const AssertionRequest &request) const override
Indicates whether the assertion requested in request can be generated by this generator.
Status Initialize(const std::string &config) override
Initializes this assertion authority using the provided config.
bool IsInitialized() const override
Indicates whether this assertion authority has been initialized successfully via a call to Initialize...