Package version:

Interface AttestationResult

A Microsoft Azure Attestation response token body - the body of a response token issued by MAA

interface AttestationResult {
    enclaveHeldData?: Uint8Array<ArrayBufferLike>;
    initTimeClaims: unknown;
    isDebuggable?: boolean;
    issuer: string;
    mrEnclave?: string;
    mrSigner?: string;
    nonce?: string;
    policyClaims: unknown;
    policyHash: Uint8Array;
    policySigner?: AttestationSigner;
    productId?: number;
    runTimeClaims: unknown;
    sgxCollateral?: AttestationSgxCollateralInfo;
    svn?: number;
    uniqueId: string;
    verifierType: string;
    version: string;
}
Index
enclaveHeldData?: Uint8Array<ArrayBufferLike>

Returns the value of the runtime_data field specified as an input to the AttestationClient.attestSgxEnclave or AttestationClient.attestOpenEnclave API.

The enclaveHeldData property will only be populated if the runtimeData parameter to the Attest API is specified.

initTimeClaims: unknown

Returns the initialization time claims in the token. This value will match the input initTimeJson property to the AttestationClient.attestSgxEnclave or AttestationClient.attestOpenEnclave API.

The initTimeClaims property will only be populated if the initTimeJson parameter to the Attest API is specified. It will not be populated if the initTimeData parameter is specified.

isDebuggable?: boolean

True if the enclave is debuggable, false otherwise. Only valid if verifierType is SGX.

issuer: string

Returns the issuer of the attestation token. MUST be the same as the endpoint used when constructing the attestation client instance.

mrEnclave?: string

The HEX encoded SGX MRENCLAVE value for the enclave. Only valid if the verifierType field is "SGX"

mrSigner?: string

The HEX encoded SGX MRSIGNER value for the enclave. Only valid if the verifierType field is "SGX"

nonce?: string

Returns the "nonce" value if one was specified in the Attest request.

policyClaims: unknown

Returns the set of claims generated by the attestation policy on the instance.

policyHash: Uint8Array

The base64url encoded SHA256 hash of the BASE64URL encoded policy text used for attestation.

policySigner?: AttestationSigner

The certificate used to sign the policy object, if specified.

productId?: number

The SGX Product ID for the enclave. Only valid if the verifierType field is "SGX"

runTimeClaims: unknown

Returns the runtime claims in the token.

This value will match the input runTimeJson property to the AttestationClient.attestSgxEnclave or AttestationClient.attestOpenEnclave API.

The runtimeClaims property will only be populated if the runtimeJson parameter to the Attest API is specified. It will not be populated if the runtimeData parameter is specified.

Returns a set of information describing the complete set of inputs to the Attestation validation logic.

See the Intel SGX documentation for more information on quote validation.

svn?: number

The SGX SVN value for the enclave. Only valid if the verifierType field is "SGX"

uniqueId: string

Unique Identifier for the token.

Corresponds to the 'jti' claim defined in RFC 7519 section 4.1.7

verifierType: string

Returns the verifier which generated this attestation token. Normally one of: "SGX" or "TPM", but others can be specified.

version: string

The Schema version of this structure. Current Value: 1.0