1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsICertificatePrincipal.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 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 +/* 1.13 + * Historically, principals, certificates, and signed JARs were all linked 1.14 + * together in one big mess. When that mess was cleaned up, it turned out that 1.15 + * the principals used to store certificate information didn't overlap at all 1.16 + * with the principals used for security policy. So this interface was created 1.17 + * so that real principals wouldn't have to carry around all that baggage. 1.18 + * 1.19 + * The name here is totally a misnomer. This isn't a principal at all, and would 1.20 + * better be called nsICertificateHolder or something. But that would require 1.21 + * renaming some APIs, so let's just let this be for now. 1.22 + */ 1.23 + 1.24 +[scriptable, uuid(7cd4af5a-64d3-44a8-9700-804a42a6109a)] 1.25 +interface nsICertificatePrincipal : nsISupports 1.26 +{ 1.27 + readonly attribute AUTF8String fingerprint; 1.28 + readonly attribute AUTF8String prettyName; 1.29 + readonly attribute AUTF8String subjectName; 1.30 + readonly attribute nsISupports certificate; 1.31 + readonly attribute boolean hasCertificate; // For compat; always true. 1.32 + 1.33 + bool equals(in nsICertificatePrincipal aOther); 1.34 +}; 1.35 + 1.36 +////////////////////////////////////////////////////////////////////////////////