Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsISupports.idl"
7
8
/**
9
* nsIU2FTokenManager
10
*
11
* An interface to the U2FTokenManager singleton.
12
*
13
* This should be used only by the WebAuthn browser UI prompts.
14
*/
15
16
[scriptable, uuid(745e1eac-e449-4342-bca1-ee0e6ead09fc)]
17
interface nsIU2FTokenManager : nsISupports
18
{
19
/**
20
* Resumes the current WebAuthn/U2F transaction if that matches the given
21
* transaction ID. This is used only when direct attestation was requested
22
* and we have to wait for user input to proceed.
23
*
24
* @param aTransactionID : The ID of the transaction to resume.
25
* @param aForceNoneAttestation : The user might enforce none attestation.
26
*/
27
void resumeRegister(in uint64_t aTransactionID,
28
in bool aForceNoneAttestation);
29
30
/**
31
* Cancels the current WebAuthn/U2F transaction if that matches the given
32
* transaction ID.
33
*
34
* @param aTransactionID : The ID of the transaction to cancel.
35
*/
36
void cancel(in uint64_t aTransactionID);
37
};