Extending nsIX509Cert
[scriptable, uuid(399004d8-b8c7-4eb9-8362-d99f4c0161fd)]
interface nsIX509Cert3 : nsIX509Cert2

Constants

  Constants for specifying the chain mode when exporting a certificate
const unsigned long CMS_CHAIN_MODE_CertOnly = 1

          
const unsigned long CMS_CHAIN_MODE_CertChain = 2

          
const unsigned long CMS_CHAIN_MODE_CertChainWithRoot = 3

Attributes


          
readonly attribute boolean isSelfSigned

Methods

  Obtain the certificate wrapped in a PKCS#7 SignedData structure,
  with or without the certificate chain

  @param chainMode Whether to include the chain (with or without the root),
                       see CMS_CHAIN_MODE constants.
  @param length The number of bytes of the PKCS#7 data.
  @param data The bytes representing the PKCS#7 wrapped certificate.
void exportAsCMS(in unsigned long chainMode, out unsigned long length, [array, retval, size_is(length)] out octet data)
 Human readable names identifying all hardware or
 software tokens the certificate is stored on.

 @param length On success, the number of entries in the returned array.
 @return On success, an array containing the names of all tokens 
         the certificate is stored on (may be empty).
         On failure the function throws/returns an error.
void getAllTokenNames(out unsigned long length, [array, retval, size_is(length)] out wstring tokenNames)
  Async version of nsIX509Cert::getUsagesArray()

  Will not block, will request results asynchronously,
  availability of results will be notified.
void requestUsagesArrayAsync(in nsICertVerificationListener cvl)