File AzureAttestationServiceClient.h

namespace sgx

Typedefs

typedef jwt::decoded_jwt<jwt::traits::kazuho_picojson> DecodedJwt
typedef jwt::jwks<jwt::traits::kazuho_picojson> JwksSet
class AzureAttestationServiceClient

Public Functions

AzureAttestationServiceClient(const std::string &attestationServiceUrlIn)
std::string attestEnclave(const EnclaveInfo &enclaveInfo)
void validateJwtToken(const std::string &jwtToken)

Public Static Functions

static std::string requestBodyFromEnclaveInfo(const EnclaveInfo &enclaveInfo)

Private Functions

JwksSet fetchJwks()
void validateJkuUri(const DecodedJwt &decodedJwt)
void validateJwtSignature(const DecodedJwt &decodedJwt)

Private Members

std::string attestationServiceUrl
std::string certificateEndpoint
std::string tenantName
JwksSet cachedJwks