Package version:

Function createAttestationPolicyToken

  • Constructs an AttestationToken containing an Attestation Policy document.

    Parameters

    • policy: string

      Attestation policy to embed in the attestation token.

    • OptionalprivateKey: string

      optional private key used to sign the attestation token.

    • Optionalcertificate: string

      optional certificate used to verify the attestation token.

    Returns AttestationPolicyToken

    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.

    Error when the key in the certificate provided does not match the private key.