1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIPK11TokenDB.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +interface nsIPK11Token; 1.13 +interface nsIEnumerator; 1.14 + 1.15 +/** 1.16 + * The PK11 Token Database provides access to the PK11 modules 1.17 + * that are installed, and the tokens that are available. 1.18 + * Interfaces: nsIPK11TokenDB 1.19 + * Threading: ?? 1.20 + */ 1.21 +%{C++ 1.22 +#define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1" 1.23 +%} 1.24 + 1.25 +/** 1.26 + * nsIPK11TokenDB - Manages PK11 Tokens 1.27 + */ 1.28 +[scriptable, uuid(4ee28c82-1dd2-11b2-aabf-bb4017abe395)] 1.29 +interface nsIPK11TokenDB : nsISupports 1.30 +{ 1.31 + /* 1.32 + * Get the internal key database token 1.33 + */ 1.34 + nsIPK11Token getInternalKeyToken(); 1.35 + 1.36 + /* 1.37 + * Find a token by name 1.38 + */ 1.39 + nsIPK11Token findTokenByName(in wstring tokenName); 1.40 + 1.41 + /* 1.42 + * List all tokens 1.43 + */ 1.44 + nsIEnumerator listTokens(); 1.45 + 1.46 +}; 1.47 +