Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttestationClient

Package version

Attestation Client class.

The AttestationClient class enables access to the Attestation related APIs:

  • getOpenIdMetadata
  • getAttestationSigners
  • attestSgxEnclave
  • attestOpenEnclave
  • attestTpm

Hierarchy

  • AttestationClient

Index

Constructors

constructor

Properties

policyCertificates

policyCertificates: PolicyCertificates

Legacy property to access policy certificate management APIs.

Will be removed.

Methods

attestOpenEnclave

  • attestOpenEnclave(report: Uint8Array, options?: AttestOpenEnclaveOptions): Promise<AttestationResponse<AttestationResult>>
  • Attests an OpenEnclave report generated from an SGX Enclave using the OpenEnclave SDK.

    Parameters

    • report: Uint8Array

      An OpenEnclave report generated by an SGX enclave.

    • Default value options: AttestOpenEnclaveOptions = {}

      Operation options for the attestOpenEnclave API call.

    Returns Promise<AttestationResponse<AttestationResult>>

    Returns an AttestationResponse whose body is an AttestationResult describing the claims returned by the attestation service.

attestSgxEnclave

  • attestSgxEnclave(quote: Uint8Array, options?: AttestSgxEnclaveOptions): Promise<AttestationResponse<AttestationResult>>
  • Attests a quote generated from SGX Enclave using the Intel SDK.

    Parameters

    • quote: Uint8Array

      An SGX quote generated by an SGX enclave.

    • Default value options: AttestSgxEnclaveOptions = {}

      Operation options for the attestOpenEnclave API call.

    Returns Promise<AttestationResponse<AttestationResult>>

    Returns an AttestationResponse whose body is an AttestationResult describing the claims returned by the attestation service.

attestTpm

  • Attest a TPM based enclave.

    See the TPM Attestation Protocol Reference for more information.

    remarks

    The incoming requests to the TPM attestation API are stringified JSON objects.

    example

    For example, the initial call for a TPM attestation operation is:

    const encodedPayload = JSON.stringify({ payload: { type: "aikcert" } });
    const result = await client.attestTpm(encodedPayload);

    where stringToBytes converts the string to UTF8.

    Parameters

    • request: string

      Incoming request to send to the TPM attestation service, Utf8 encoded.

    • Default value options: AttestTpmOptions = {}

      Pipeline options for TPM attestation request.

    Returns Promise<string>

    A structure containing the response from the TPM attestation, Utf8 encoded.

getAttestationSigners

getOpenIdMetadata

Generated using TypeDoc