2001-01-30 21:34:22 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-31 13:33:35 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-01-30 21:34:22 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2001-05-16 00:40:28 +04:00
|
|
|
|
2002-09-17 22:51:22 +04:00
|
|
|
interface nsIPK11Token;
|
2001-01-30 21:34:22 +03:00
|
|
|
|
|
|
|
[scriptable, uuid(c2d4f296-ee60-11d4-998b-00b0d02354a0)]
|
|
|
|
interface nsIPKCS11Slot : nsISupports {
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String name;
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String desc;
|
|
|
|
/**
|
|
|
|
* Manufacturer ID of the slot.
|
|
|
|
*/
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String manID;
|
|
|
|
/**
|
|
|
|
* Hardware version of the slot.
|
|
|
|
*/
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String HWVersion;
|
|
|
|
/**
|
|
|
|
* Firmware version of the slot.
|
|
|
|
*/
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String FWVersion;
|
2001-05-16 00:40:28 +04:00
|
|
|
|
|
|
|
const unsigned long SLOT_DISABLED = 0;
|
|
|
|
const unsigned long SLOT_NOT_PRESENT = 1;
|
|
|
|
const unsigned long SLOT_UNINITIALIZED = 2;
|
|
|
|
const unsigned long SLOT_NOT_LOGGED_IN = 3;
|
|
|
|
const unsigned long SLOT_LOGGED_IN = 4;
|
|
|
|
const unsigned long SLOT_READY = 5;
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2001-05-16 00:40:28 +04:00
|
|
|
readonly attribute unsigned long status;
|
|
|
|
|
|
|
|
/* This is really a workaround for now. All of the "slot" functions
|
|
|
|
* (isTokenPresent(), etc.) are in nsIPK11Token. For now, return the
|
|
|
|
* token and handle those things there.
|
2001-01-30 21:34:22 +03:00
|
|
|
*/
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2001-05-16 00:40:28 +04:00
|
|
|
nsIPK11Token getToken();
|
|
|
|
|
|
|
|
/* more fun with workarounds - we're referring to everything by token name */
|
2017-05-25 16:56:04 +03:00
|
|
|
[must_use]
|
2016-09-30 19:46:13 +03:00
|
|
|
readonly attribute AUTF8String tokenName;
|
2001-05-16 00:40:28 +04:00
|
|
|
};
|