--- title: AuthenticatorAttestationResponse slug: Web/API/AuthenticatorAttestationResponse tags: - API - Authentication - AuthenticatorAttestationResponse - Interface - Reference - Web Authentication API - WebAuthn - インターフェイス translation_of: Web/API/AuthenticatorAttestationResponse ---
AuthenticatorAttestationResponse は Web Authentication API のインターフェイスで、 {{domxref('CredentialsContainer.create()')}} に {{domxref('PublicKeyCredential')}} を渡すと返されます。そして、生成された新しいキーペアの暗号化信頼ルートを提供します。このレスポンスは認証情報の生成を完了させるために、信頼されている側のサーバーに送信されます。
このインターフェイスは {{domxref("AuthenticatorResponse")}} を継承しています。
メモ: このインターフェイスは最上位のコンテキストに限定されています。 {{HTMLElement("iframe")}} 要素の中で使用しても、何も効果がありません。
AuthenticatorAttestationResponse.clientDataJSON {{securecontext_inline}}{{readonlyinline}}usb や nfc など) に対応していると信じられるかを記述します。情報が利用できない場合は、配列が空になることがあります。var publicKey = {
  challenge: /* from the server */,
  rp: {
    name: "Example CORP",
    id  : "login.example.com"
  },
  user: {
    id: new Uint8Array(16),
    name: "jdoe@example.com",
    displayName: "John Doe"
  },
  pubKeyCredParams: [
    {
      type: "public-key",
      alg: -7
    }
  ]
};
navigator.credentials.create({ publicKey })
  .then(function (newCredentialInfo) {
    var response = newCredentialInfo.response;
    // Do something with the response
    // (sending it back to the relying party server maybe?)
  }).catch(function (err) {
     console.error(err);
  });
| 仕様書 | 状態 | 備考 | 
|---|---|---|
| {{SpecName('WebAuthn','#authenticatorattestationresponse', 'AuthenticatorAttestationResponse interface')}} | {{Spec2('WebAuthn')}} | 初回定義 | 
{{Compat("api.AuthenticatorAttestationResponse")}}