| // Copyright 2024 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://w3c-fedid.github.io/digital-credentials/#the-digitalcredential-interface |
| [ |
| Exposed=Window, |
| SecureContext, |
| RuntimeEnabled=WebIdentityDigitalCredentials |
| ] interface DigitalCredential : Credential { |
| // https://w3c-fedid.github.io/digital-credentials/#the-protocol-member-1 |
| readonly attribute USVString protocol; |
| |
| // https://w3c-fedid.github.io/digital-credentials/#the-data-member-1 |
| [SameObject] readonly attribute object data; |
| |
| // https://w3c-fedid.github.io/digital-credentials/#dom-digitalcredential-useragentallowsprotocol |
| static boolean userAgentAllowsProtocol(DOMString protocol); |
| |
| [CallWith=ScriptState] object toJSON(); |
| }; |