aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/authenticatorattestationresponse
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/authenticatorattestationresponse
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/authenticatorattestationresponse')
-rw-r--r--files/ja/web/api/authenticatorattestationresponse/index.html101
1 files changed, 101 insertions, 0 deletions
diff --git a/files/ja/web/api/authenticatorattestationresponse/index.html b/files/ja/web/api/authenticatorattestationresponse/index.html
new file mode 100644
index 0000000000..7357c7b0d7
--- /dev/null
+++ b/files/ja/web/api/authenticatorattestationresponse/index.html
@@ -0,0 +1,101 @@
+---
+title: AuthenticatorAttestationResponse
+slug: Web/API/AuthenticatorAttestationResponse
+tags:
+ - API
+ - Authentication
+ - AuthenticatorAttestationResponse
+ - Interface
+ - Reference
+ - Web Authentication API
+ - WebAuthn
+ - インターフェイス
+translation_of: Web/API/AuthenticatorAttestationResponse
+---
+<div>{{APIRef("Web Authentication API")}}{{securecontext_header}}</div>
+
+<p><strong><code>AuthenticatorAttestationResponse</code></strong> は <a href="/ja/docs/Web/API/Web_Authentication_API">Web Authentication API</a> のインターフェイスで、 {{domxref('CredentialsContainer.create()')}} に {{domxref('PublicKeyCredential')}} を渡すと返されます。そして、生成された新しいキーペアの暗号化信頼ルートを提供します。このレスポンスは認証情報の生成を完了させるために、信頼されている側のサーバーに送信されます。</p>
+
+<p>このインターフェイスは {{domxref("AuthenticatorResponse")}} を継承しています。</p>
+
+<div class="note">
+<p><strong>メモ:</strong> このインターフェイスは最上位のコンテキストに限定されています。 {{HTMLElement("iframe")}} 要素の中で使用しても、何も効果がありません。</p>
+</div>
+
+<h2 id="Properties" name="Properties">プロパティ</h2>
+
+<dl>
+ <dt><code>AuthenticatorAttestationResponse.clientDataJSON</code> {{securecontext_inline}}{{readonlyinline}}</dt>
+ <dd>認証のためのクライアントデータで、オリジンやチャレンジです。 {{domxref("AuthenticatorAttestationResponse.clientDataJSON","clientDataJSON")}} プロパティは {{domxref("AuthenticatorResponse")}} から継承しています。</dd>
+ <dt>{{domxref("AuthenticatorAttestationResponse.attestationObject")}} {{securecontext_inline}}{{readonlyinline}}</dt>
+ <dd>{{jsxref("ArrayBuffer")}} で、新しく生成されたキーペアのための認証機器のデータとアテステーションステートメントが入ります。</dd>
+</dl>
+
+<h2 id="Methods" name="Methods">メソッド</h2>
+
+<dl>
+ <dt>{{domxref("AuthenticatorAttestationResponse.getTransports()")}}{{securecontext_inline}}</dt>
+ <dd>文字列の {{jsxref("Array")}} で、認証機器がどの転送方法 (<code>usb</code> や <code>nfc</code> など) に対応していると信じられるかを記述します。情報が利用できない場合は、配列が空になることがあります。</dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<pre class="brush: js">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);
+ });</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('WebAuthn','#authenticatorattestationresponse', 'AuthenticatorAttestationResponse interface')}}</td>
+ <td>{{Spec2('WebAuthn')}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.AuthenticatorAttestationResponse")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{domxref("AuthenticatorAssertionResponse")}}: 既存の認証情報を受け取る際にレスポンスの種類のインターフェイス</li>
+ <li>{{domxref("AuthenticatorResponse")}}: 親インターフェイス</li>
+</ul>