AuthenticatorAttestationResponse: getAuthenticatorData() 方法
AuthenticatorAttestationResponse 介面的 getAuthenticatorData() 方法返回一個 ArrayBuffer,其中包含 AuthenticatorAttestationResponse.attestationObject 屬性中的身份驗證器資料。
這是一個方便函式,用於輕鬆訪問身份驗證器資料,而無需編寫額外的解析程式碼從 attestationObject 中提取它。
語法
js
getAuthenticatorData()
引數
無。
返回值
一個 ArrayBuffer,其 ArrayBuffer.byteLength 至少為 37 位元組,其中包含 身份驗證器資料 中解釋的資料結構。
這將等同於 AuthenticatorAttestationResponse.attestationObject 屬性中包含的身份驗證器資料。
示例
有關詳細示例,請參閱 建立公鑰憑證。
規範
| 規範 |
|---|
| Web Authentication:訪問公鑰憑證的 API - 第 3 級 # dom-authenticatorattestationresponse-getauthenticatordata |
瀏覽器相容性
載入中…