@azure/attestation package
Classes
AttestationAdministrationClient |
Attestation Client class. The AttestationClient class enables access to the Attestation related APIs:
|
AttestationClient |
Attestation Client class. The AttestationClient class enables access to the Attestation related APIs:
|
Interfaces
AttestOpenEnclaveOptions |
Optional parameters for the AttestOpenEnclave API. |
AttestSgxEnclaveOptions |
Optional parameters for the AttestSgxEnclave API. |
AttestTpmOptions |
Operation options for the AttestTpm API. |
AttestationAdministrationClientOperationOptions |
Operation options for the Attestation Administration Client operations. |
AttestationAdministrationClientOptions |
Attestation Client Construction Options. |
AttestationAdministrationClientPolicyCertificateOperationOptions |
Operation options for the Policy Certificates operations. |
AttestationAdministrationClientPolicyOperationOptions |
Operation options for the administration Policy operations. |
AttestationClientOperationOptions |
Operation options for the Attestation Client operations. |
AttestationClientOptions |
Attestation Client Construction Options. |
AttestationPolicyToken |
An AttestationPolicyToken represents an AttestationToken which holds an attestation policy document. When the attestation service receives a set policy request, the payload of the set policy token contains a JSON Web Signature whose body contains the actual attestation policy document. The AttestationPolicyToken represents this JWS object. |
AttestationResponse |
An AttestationResponse represents the response from the Microsoft Azure Attestation service. It has two properties: |
AttestationResult |
A Microsoft Azure Attestation response token body - the body of a response token issued by MAA |
AttestationSgxCollateralInfo |
Defines the contents of the sgxCollateral claim in an AttestationResult. |
AttestationSigner |
An AttestationSigner represents a signing certificate chain/Key ID combination returned by the attestation service. |
AttestationToken |
An AttestationToken represents an RFC 7515 JSON Web Signature object. It can represent either the token returned by the attestation service, or it can be used to create a token locally which can be used to verify attestation policy changes. |
AttestationTokenValidationOptions |
Options used to validate attestation tokens. |
PolicyCertificatesModificationResult |
The result of a policy certificate modification |
PolicyResult |
The result of a policy certificate modification |
Type Aliases
AttestationType |
Defines values for AttestationType. Known values supported by the serviceSgxEnclave: Intel Software Guard eXtensions |
CertificateModification |
Defines values for CertificateModification. Known values supported by the serviceIsPresent: After the operation was performed, the certificate is in the set of certificates. |
PolicyModification |
Defines values for PolicyModification. Known values supported by the serviceUpdated: The specified policy object was updated. |
Enums
KnownAttestationType |
Known values of AttestationType that the service accepts. |
KnownCertificateModification |
Known values of CertificateModification that the service accepts. |
KnownPolicyModification |
Known values of PolicyModification that the service accepts. |
Functions
create |
Constructs an AttestationToken containing an Attestation Policy document. |
Function Details
createAttestationPolicyToken(string, string, string)
Constructs an AttestationToken containing an Attestation Policy document.
function createAttestationPolicyToken(policy: string, privateKey?: string, certificate?: string): AttestationPolicyToken
Parameters
- policy
-
string
Attestation policy to embed in the attestation token.
- privateKey
-
string
optional private key used to sign the attestation token.
- certificate
-
string
optional certificate used to verify the attestation token.
Returns
Remarks
Note that if the attestation instance is running in Isolated
mode,
the privateKey and certificate are required. If the attestation instance
is running in AAD
mode, they are optional.