1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIIdentityInfo.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +[scriptable, uuid(e9da87b8-b87c-4bd1-a6bc-5a9a2c7f6d8d)] 1.11 +interface nsIIdentityInfo : nsISupports 1.12 +{ 1.13 + /** 1.14 + * A "true" value means: 1.15 + * The object that implements this interface uses a certificate that 1.16 + * was successfully verified as an Extended Validation (EV) cert. 1.17 + * The test is bound to SSL Server Cert Usage. 1.18 + */ 1.19 + readonly attribute boolean isExtendedValidation; 1.20 + 1.21 + /** 1.22 + * This function uses the same test as attribute 1.23 + * isExtendedValidation 1.24 + * 1.25 + * If isExtendedValidation is true, this function will return 1.26 + * a policy identifier in dotted notation (like 1.2.3.4.5). 1.27 + * 1.28 + * If isExtendedValidation is false, this function will return 1.29 + * an empty (length string) value. 1.30 + */ 1.31 + ACString getValidEVPolicyOid(); 1.32 +}; 1.33 +