1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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 OSReauthenticator_h
8 #define OSReauthenticator_h
10 #include "nsIOSReauthenticator.h"
12 #define NS_OSREAUTHENTICATOR_CONTRACTID \
13 "@mozilla.org/security/osreauthenticator;1"
14 #define NS_OSREAUTHENTICATOR_CID \
16 0x4fe082ae, 0x6ff0, 0x4b41, { \
17 0xb2, 0x4f, 0xea, 0xa6, 0x64, 0xf6, 0xe4, 0x6a \
21 class OSReauthenticator
: public nsIOSReauthenticator
{
23 NS_DECL_THREADSAFE_ISUPPORTS
24 NS_DECL_NSIOSREAUTHENTICATOR
27 virtual ~OSReauthenticator() = default;
31 nsresult
ReauthenticateUserMacOS(const nsAString
& aPrompt
,
32 /* out */ bool& aReauthenticated
,
33 /* out */ bool& aIsBlankPassword
);
36 #endif // OSReauthenticator_h