Bug 1885602 - Part 2: Add a MozillaAccountMenuButton composable for the menu redesign...
[gecko.git] / dom / webauthn / WebAuthnEnumStrings.h
blob35cca2ed0cc19e9ef69e2dd071f9fb848f384b05
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_WebAuthnEnumStrings_h
8 #define mozilla_dom_WebAuthnEnumStrings_h
10 // WARNING: This version number must match the WebAuthn level where the strings
11 // below are defined.
12 #define MOZ_WEBAUTHN_ENUM_STRINGS_VERSION 3
14 // https://www.w3.org/TR/webauthn-2/#enum-attestation-convey
15 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_NONE "none"
16 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_INDIRECT "indirect"
17 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_DIRECT "direct"
18 #define MOZ_WEBAUTHN_ATTESTATION_CONVEYANCE_PREFERENCE_ENTERPRISE "enterprise"
19 // WARNING: Change version number when adding new values!
21 // https://www.w3.org/TR/webauthn-2/#enum-attachment
22 #define MOZ_WEBAUTHN_AUTHENTICATOR_ATTACHMENT_PLATFORM "platform"
23 #define MOZ_WEBAUTHN_AUTHENTICATOR_ATTACHMENT_CROSS_PLATFORM "cross-platform"
24 // WARNING: Change version number when adding new values!
26 // https://www.w3.org/TR/webauthn-2/#enum-credentialType
27 #define MOZ_WEBAUTHN_PUBLIC_KEY_CREDENTIAL_TYPE_PUBLIC_KEY "public-key"
28 // WARNING: Change version number when adding new values!
30 // https://www.w3.org/TR/webauthn-2/#enum-residentKeyRequirement
31 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_REQUIRED "required"
32 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_PREFERRED "preferred"
33 #define MOZ_WEBAUTHN_RESIDENT_KEY_REQUIREMENT_DISCOURAGED "discouraged"
34 // WARNING: Change version number when adding new values!
36 // https://www.w3.org/TR/webauthn-2/#enum-userVerificationRequirement
37 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_REQUIRED "required"
38 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_PREFERRED "preferred"
39 #define MOZ_WEBAUTHN_USER_VERIFICATION_REQUIREMENT_DISCOURAGED "discouraged"
40 // WARNING: Change version number when adding new values!
42 // https://www.w3.org/TR/webauthn-2/#enum-transport
43 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_USB "usb"
44 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_NFC "nfc"
45 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_BLE "ble"
46 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_INTERNAL "internal"
47 #define MOZ_WEBAUTHN_AUTHENTICATOR_TRANSPORT_HYBRID "hybrid"
48 // WARNING: Change version number when adding new values!
50 #endif // mozilla_dom_WebAuthnEnumStrings_h