Blame security/manager/ssl/nsIPK11TokenDB.idl

Packit f0b94e
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
Packit f0b94e
 *
Packit f0b94e
 * This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#include "nsISupports.idl"
Packit f0b94e
Packit f0b94e
interface nsIPK11Token;
Packit f0b94e
Packit f0b94e
/**
Packit f0b94e
 * The PK11 Token Database provides access to the PK11 modules
Packit f0b94e
 * that are installed, and the tokens that are available.
Packit f0b94e
 * Interfaces: nsIPK11TokenDB
Packit f0b94e
 * Threading: ??
Packit f0b94e
 */
Packit f0b94e
%{C++
Packit f0b94e
#define NS_PK11TOKENDB_CONTRACTID "@mozilla.org/security/pk11tokendb;1"
Packit f0b94e
%}
Packit f0b94e
Packit f0b94e
/**
Packit f0b94e
 * nsIPK11TokenDB - Manages PK11 Tokens
Packit f0b94e
 */
Packit f0b94e
[scriptable, uuid(4ee28c82-1dd2-11b2-aabf-bb4017abe395)]
Packit f0b94e
interface nsIPK11TokenDB : nsISupports
Packit f0b94e
{
Packit f0b94e
  /*
Packit f0b94e
   * Get the internal key database token
Packit f0b94e
   */
Packit f0b94e
  nsIPK11Token getInternalKeyToken();
Packit f0b94e
Packit f0b94e
  /*
Packit f0b94e
   * Find a token by name. Throws NS_ERROR_FAILURE if no token with the given
Packit f0b94e
   * name can be found.
Packit f0b94e
   * @param tokenName a string identifying the name of the token. Must be
Packit f0b94e
   *                  non-empty.
Packit f0b94e
   * @return a token with the given name
Packit f0b94e
   */
Packit f0b94e
  [must_use]
Packit f0b94e
  nsIPK11Token findTokenByName(in AUTF8String tokenName);
Packit f0b94e
};