azure-sdk-for-cpp/sdk/attestation/azure-security-attestation/samples/attestation/attestation_collateral.hpp
Rick Winter b54d509c72
Use standard syntax for MIT license (#4786)
* Use standard syntax for MIT license

* Stop appending "All rights reserved"
2023-07-12 22:37:36 -07:00

26 lines
723 B
C++

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <azure/core/base64.hpp>
/** @brief Collateral used by Attestation APIs
*
* @details this hides the details of the actual base64url encoded values from sample
* implementations.
*/
class AttestationCollateral {
public:
/// An Open Enclave report which can be used to test.
static std::vector<uint8_t> OpenEnclaveReport();
/// An Sgx Enclave report which can be used to test.
static std::vector<uint8_t> SgxQuote();
/// RunTime data which is encapsulated in the quote/reports returned.
static std::vector<uint8_t> RunTimeData();
/// Minimal Attestation Policy.
static std::string GetMinimalPolicy();
};