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.

@mozilla.org/security/x509certdb;1

This component implements the following interfaces:

Constants

Constants that define which usages a certificate is trusted for.
PRUint32 nsIX509CertDB.UNTRUSTED = 0
PRUint32 nsIX509CertDB.TRUSTED_SSL = 1
PRUint32 nsIX509CertDB.TRUSTED_EMAIL = 2
PRUint32 nsIX509CertDB.TRUSTED_OBJSIGN = 4

Properties

readonly PRBool nsIX509CertDB.isOcspOn

Whether OCSP is enabled in preferences.

Methods

InterfaceMethod
nsIX509CertDB2 void addCertFromBase64 ( char* base64 , char* trust , char* name )
nsIX509CertDB nsIX509Cert constructX509FromBase64 ( char* base64 )
nsIX509CertDB void deleteCertificate ( nsIX509Cert cert )
nsIX509CertDB void exportPKCS12File ( nsISupports token , nsILocalFile file , PRUint32 count , nsIX509Cert certs )
nsIX509CertDB nsIX509Cert findCertByDBKey ( char* DBkey , nsISupports token )
nsIX509CertDB nsIX509Cert findCertByEmailAddress ( nsISupports token , char* emailAddress )
nsIX509CertDB nsIX509Cert findCertByNickname ( nsISupports token , AString nickname )
nsIX509CertDB void findCertNicknames ( nsISupports token , PRUint32 type , out PRUint32 count , out arrayof PRUnichar* certNameList )
nsIX509CertDB nsIX509Cert findEmailEncryptionCert ( AString nickname )
nsIX509CertDB nsIX509Cert findEmailSigningCert ( AString nickname )
nsIX509CertDB2 nsIX509CertList getCerts ( )
nsIX509CertDB nsIArray getOCSPResponders ( )
nsIX509CertDB void importCertificates ( arrayof PRUint8 data , PRUint32 length , PRUint32 type , nsIInterfaceRequestor ctx )
nsIX509CertDB void importCertsFromFile ( nsISupports token , nsILocalFile file , PRUint32 type )
nsIX509CertDB void importEmailCertificate ( arrayof PRUint8 data , PRUint32 length , nsIInterfaceRequestor ctx )
nsIX509CertDB void importPKCS12File ( nsISupports token , nsILocalFile file )
nsIX509CertDB void importServerCertificate ( arrayof PRUint8 data , PRUint32 length , nsIInterfaceRequestor ctx )
nsIX509CertDB void importUserCertificate ( arrayof PRUint8 data , PRUint32 length , nsIInterfaceRequestor ctx )
nsIX509CertDB PRBool isCertTrusted ( nsIX509Cert cert , PRUint32 certType , PRUint32 trustType )
nsIX509CertDB void setCertTrust ( nsIX509Cert cert , PRUint32 type , PRUint32 trust )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com