1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIX509CertDB2.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 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 nsIX509CertList; 1.13 + 1.14 +/** 1.15 + * This represents a service to access and manipulate 1.16 + * X.509 certificates stored in a database through methods 1.17 + * not in nsIX509CertDB, which is frozen 1.18 + * 1.19 + */ 1.20 +[scriptable, uuid(e0df4784-6560-45bf-b1b7-86076a0e8381)] 1.21 +interface nsIX509CertDB2 : nsISupports { 1.22 + 1.23 + /* 1.24 + * Add a cert to a cert DB from a base64 encoded string. 1.25 + * 1.26 + * @param base64 The raw representation of a certificate, 1.27 + * encoded as Base 64. 1.28 + * @param aTrust decoded by CERT_DecodeTrustString. 3 comma separated characters, 1.29 + * indicating SSL, Email, and Obj signing trust 1.30 + * @param aName name of the cert for display purposes. 1.31 + */ 1.32 + void addCertFromBase64(in string base64, in string aTrust, in string aName); 1.33 + 1.34 + /* 1.35 + * Get all the known certs in the database 1.36 + */ 1.37 + nsIX509CertList getCerts(); 1.38 +}; 1.39 +