AuthenticatorAssertionResponse: thuộc tính signature

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2021.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Thuộc tính chỉ đọc signature của giao diện AuthenticatorAssertionResponse là một đối tượng ArrayBuffer đại diện cho chữ ký của authenticator trên cả AuthenticatorAssertionResponse.authenticatorData và mã băm SHA-256 của dữ liệu phía máy khách (AuthenticatorAssertionResponse.clientDataJSON).

Chữ ký này sẽ được gửi tới máy chủ để kiểm tra, như một phần của phản hồi. Nó cung cấp bằng chứng rằng một authenticator thực sự sở hữu khóa riêng đã được dùng để tạo thông tin xác thực.

Giá trị

Một đối tượng ArrayBuffer là chữ ký của authenticator (dùng khóa riêng của nó) trên cả AuthenticatorAssertionResponse.authenticatorData và mã băm SHA-256 do máy khách cung cấp cho dữ liệu của nó (thử thách, nguồn gốc, v.v. và có thể lấy từ AuthenticatorAssertionResponse.clientDataJSON).

Ví dụ

Xem Truy xuất thông tin xác thực khóa công khai để có ví dụ chi tiết.

Thông số kỹ thuật

Specification
Web Authentication: An API for accessing Public Key Credentials - Level 3
# dom-authenticatorassertionresponse-signature

Tương thích trình duyệt