Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttestationAdministrationClient

Package version

Attestation Client class.

The AttestationClient class enables access to the Attestation related APIs:

  • getPolicy
  • setPolicy
  • resetPolicy
  • getPolicyManagementCertificates
  • addPolicyManagementCertificate
  • removePolicyManagementCertificate

Hierarchy

  • AttestationAdministrationClient

Index

Constructors

constructor

Methods

addPolicyManagementCertificate

  • Add a new certificate chain to the set of policy management certificates.

    remarks

    This API is only supported on isolated attestation instances.

    The signing key MUST be one of the existing attestation signing certificates. The new pemCertificate is signed using the signingKey and the service will validate the signature before allowing the addition.

    throws

    {@link Error} when a private key is specified without a certificate and vice versa.

    throws

    {@link Error} when the key in the certificate provided does not match the private key.

    Parameters

    • pemCertificate: string

      PEM encoded certificate to add to the set of policy management certificates.

    • privateKey: string

      Existing attestation private key used to sign the incoming request.

    • certificate: string

      Existing attestation certificate used to verify the incoming request.

    • Default value options: AttestationAdministrationClientPolicyCertificateOperationOptions = {}

      Options used in the call to the service.

    Returns Promise<AttestationResponse<PolicyCertificatesModificationResult>>

    An attestation response including a PolicyCertificatesModificationResult

getPolicy

getPolicyManagementCertificates

removePolicyManagementCertificate

  • Add a new certificate chain to the set of policy management certificates.

    remarks

    This API is only supported on isolated attestation instances.

    The signing key MUST be one of the existing attestation signing certificates. The new pemCertificate is signed using the signingKey and the service will validate the signature before allowing the addition.

    throws

    {@link Error} when a private key is specified without a certificate and vice versa.

    throws

    {@link Error} when the key in the certificate provided does not match the private key.

    Parameters

    • pemCertificate: string

      PEM encoded certificate to add to the set of policy management certificates.

    • privateKey: string

      Existing attestation private key used to sign the incoming request.

    • certificate: string

      Existing attestation certificate used to verify the incoming request.

    • Default value options: AttestationAdministrationClientPolicyCertificateOperationOptions = {}

      Options used in the call to the service.

    Returns Promise<AttestationResponse<PolicyCertificatesModificationResult>>

    An attestation response including a PolicyCertificatesModificationResult

resetPolicy

  • Resets the attestation policy for the specified {@link attestationType} to the default value.

    remarks

    Please note that if the attestation service instance is running in "Isolated" mode, the {@link signingKey} must be one of the signing keys configured for the service instance.

    throws

    {@link Error} when a private key is specified without a certificate and vice versa.

    throws

    {@link Error} when the key in the certificate provided does not match the private key.

    Parameters

    Returns Promise<AttestationResponse<PolicyResult>>

    An AttestationResponse wrapping a PolicyResult. Clients can use the PolicyResult to validate that the policy was actually reset by the attestation service.

setPolicy

  • Sets the attestation policy for the specified {@link attestationType}.

    remarks

    Please note that if the attestation service instance is running in "Isolated" mode, the {@link signingKey} must be one of the signing keys configured for the service instance.

    throws

    {@link Error} when a private key is specified without a certificate and vice versa.

    throws

    {@link Error} when the key in the certificate provided does not match the private key.

    Parameters

    Returns Promise<AttestationResponse<PolicyResult>>

    An AttestationResponse wrapping a PolicyResult. Clients can use the PolicyResult to validate that the policy was actually set by the attestation service.

Generated using TypeDoc