Trust Tokens: Expand key commitment parsing to handle multiple issuers
This CL makes a couple key commitment parsing and storage changes in preparation for receiving JSON-encoded keys (rather than Mojo structs) from the browser: 1. It modifies the NetworkService SetTrustTokenKeyCommitments interface to take a string rather than a map<issuer, key commitment result>; 2. It expands the key commitment parsing logic in the network service with a new method capable of parsing a collection of (issuer -> key commitment result) entries. 3. It adds a new TrustTokenKeyCommitments setter taking a raw string and passing it to the new parsing interface, rather than taking a map. R=csharrison Bug: 1068651 Change-Id: I930e797c39c4adac0da3919cbc462283c89d6f3f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139416 Commit-Queue: Matthew Denton <mpdenton@chromium.org> Reviewed-by:Matthew Denton <mpdenton@chromium.org> Reviewed-by:
Matt Menke <mmenke@chromium.org> Reviewed-by:
Charlie Harrison <csharrison@chromium.org> Cr-Commit-Position: refs/heads/master@{#759185}
Showing
This diff is collapsed.
Please register or sign in to comment