Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 2.17 KB

README.md

File metadata and controls

34 lines (22 loc) · 2.17 KB

Intel® Trust Authority Java Client SGX Adapter

com.intel.trustauthority.sgx

The Intel Trust Authority adapter for Intel SGX clients allows a confidential computing client (the attester) written in Java to collect a quote from an Intel SGX enclave for verification/attestation by Intel Trust Authority. This package allows applications written in Java to leverage Intel SGX DCAP. The Intel SGX adapter imports the Intel Trust Authority Java Connector (com.intel.trustauthority.connector).

For more information, see Java Client Integration in the Intel Trust Authority documentation.

System Requirements

Usage

The following code fragment is from the Intel SGX sample application. This fragment creates a new Intel SGX adapter, and then uses the adapter to collect a quote from an enclave. The Intel SGX enclave must expose a method for creating an enclave report and use a SHA256 hash value as reportdata.

import com.intel.trustauthority.sgx.SgxAdapter;
import com.intel.trustauthority.connector.Evidence;

// Create the SgxAdapter object
SgxAdapter sgxAdapter = new SgxAdapter(enclaveId[0], userData, EnclaveLibrary.EnclaveFunction);

// Get the Intel Sgx evidence (quote)
Evidence evidence = sgxAdapter.collectEvidence(nonce);

License

This source is distributed under the BSD-style license found in the LICENSE file.