WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIRecentBadCertsService

IID:a5ae8b05-a76e-408f-b0ba-02a831265749
Inherits From:nsISupports

This represents a global list of recently seen bad ssl status including the bad cert. The implementation will decide how many entries it will hold, the number is expected to be small.

This interface is implemented by the following components:


Methods

void addBadCert ( AString hostNameWithPort , nsISSLStatus status ) nsISSLStatus getRecentBadCert ( AString hostNameWithPort )

void addBadCert ( AString hostNameWithPort , nsISSLStatus status )

A bad certificate that should be remembered by the service. Will be added as the most recently seen cert. The service may forget older entries to make room for the new one.

Arguments:
hostNameWithPort: The host:port whose entry should be tested
status

nsISSLStatus getRecentBadCert ( AString hostNameWithPort )

Retrieve the recently seen bad ssl status for the given hostname:port. If no SSL cert was recently seen for the given hostname:port, return null. If a good cert was seen for the given hostname:port, return null.

Arguments:
hostNameWithPort: The host:port whose entry should be tested
Returns:
null or a recently seen bad ssl status with cert

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com