|
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
|
2 * |
|
3 * This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #include "nsISupports.idl" |
|
8 |
|
9 interface nsIX509CertList; |
|
10 |
|
11 /** |
|
12 * This represents a service to access and manipulate |
|
13 * X.509 certificates stored in a database through methods |
|
14 * not in nsIX509CertDB, which is frozen |
|
15 * |
|
16 */ |
|
17 [scriptable, uuid(e0df4784-6560-45bf-b1b7-86076a0e8381)] |
|
18 interface nsIX509CertDB2 : nsISupports { |
|
19 |
|
20 /* |
|
21 * Add a cert to a cert DB from a base64 encoded string. |
|
22 * |
|
23 * @param base64 The raw representation of a certificate, |
|
24 * encoded as Base 64. |
|
25 * @param aTrust decoded by CERT_DecodeTrustString. 3 comma separated characters, |
|
26 * indicating SSL, Email, and Obj signing trust |
|
27 * @param aName name of the cert for display purposes. |
|
28 */ |
|
29 void addCertFromBase64(in string base64, in string aTrust, in string aName); |
|
30 |
|
31 /* |
|
32 * Get all the known certs in the database |
|
33 */ |
|
34 nsIX509CertList getCerts(); |
|
35 }; |
|
36 |