大网数据广告活动
Web 标准与前端开发

AuthenticatorAttestationResponse: attestationObject property

· 52CE 我爱测

The **`attestationObject`** property of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the new public key, as well as signature over the entire `attestationObject` with a private key that is stored in the authenticator when it is manufactured.

Web Authentication API

The attestationObject property of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the new public key, as well as signature over the entire attestationObject with a private key that is stored in the authenticator when it is manufactured.

As part of the CredentialsContainer.create() call, an authenticator will create a new key pair as well as an attestationObject for that key pair. The public key that corresponds to the private key that has created the attestation signature is well known; however, there are various well-known attestation public key chains for different ecosystems (for example, Android or TPM attestations).

Value

After decoding the CBOR encoded ArrayBuffer, the resulting JavaScript object will contain the following properties:

  • authData

    • : The Authenticator data for the operation. Note that in AuthenticatorAssertionResponse, the authenticatorData is exposed as a property in a JavaScript object (see AuthenticatorAssertionResponse.authenticatorData) while in AuthenticatorAttestationResponse, the authenticatorData is a property in a CBOR map.

      The same AuthenticatorAssertionResponse.authenticatorData field is used by both AuthenticatorAttestationResponse and by AuthenticatorAssertionResponse. When used in attestation, it contains an optional field, attestedCredentialData. This field is not included when used in the AuthenticatorAssertionResponse. The attestedCredentialData field contains the credentialId and credentialPublicKey.

  • fmt

  • attStmt

Examples

See Creating a public key credential for a detailed example.

Specifications

Browser compatibility

See also

  • CredentialsContainer.create(): the method used to create a statement with a cryptographic challenge which signature by the authenticator is contained in attStmt, with the specified attestation transport option.

来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
MDN Web Docs / Mozilla 贡献者
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 2.5

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。