michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * 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 nsIPK11Token; michael@0: interface nsIEnumerator; michael@0: michael@0: /** michael@0: * The PK11 Token Database provides access to the PK11 modules michael@0: * that are installed, and the tokens that are available. michael@0: * Interfaces: nsIPK11TokenDB michael@0: * Threading: ?? michael@0: */ michael@0: %{C++ michael@0: #define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1" michael@0: %} michael@0: michael@0: /** michael@0: * nsIPK11TokenDB - Manages PK11 Tokens michael@0: */ michael@0: [scriptable, uuid(4ee28c82-1dd2-11b2-aabf-bb4017abe395)] michael@0: interface nsIPK11TokenDB : nsISupports michael@0: { michael@0: /* michael@0: * Get the internal key database token michael@0: */ michael@0: nsIPK11Token getInternalKeyToken(); michael@0: michael@0: /* michael@0: * Find a token by name michael@0: */ michael@0: nsIPK11Token findTokenByName(in wstring tokenName); michael@0: michael@0: /* michael@0: * List all tokens michael@0: */ michael@0: nsIEnumerator listTokens(); michael@0: michael@0: }; michael@0: