michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIX509Cert; michael@0: interface nsIInterfaceRequestor; michael@0: michael@0: [scriptable, uuid(06d018e0-d41b-4629-a4fc-daaa6029888e)] michael@0: interface nsIUserCertPicker : nsISupports { michael@0: nsIX509Cert pickByUsage(in nsIInterfaceRequestor ctx, michael@0: in wstring selectedNickname, michael@0: in long certUsage, // as defined by NSS enum SECCertUsage michael@0: in boolean allowInvalid, michael@0: in boolean allowDuplicateNicknames, michael@0: out boolean canceled); michael@0: }; michael@0: michael@0: %{C++ michael@0: #define NS_CERT_PICKER_CONTRACTID "@mozilla.org/user_cert_picker;1" michael@0: %}