Interface nsIX509CertType

This represents a X.509 certificate.

NOTE: Service workers persist x.509 certs in object form on disk. If you change this uuid you probably need a hack in nsBinaryInputStream to read the old uuid. If you change the format of the object serialization then more complex changes will be needed.

Hierarchy

Properties

certType: number

Type of this certificate

commonName: string

The subject's common name.

dbKey: string

A unique identifier of this certificate within the local storage.

displayName: string

A human readable identifier to label this certificate.

emailAddress: string

The primary email address of the certificate, if present.

isBuiltInRoot: bool

Did this certificate ship with the platform as a built-in root?

issuerCommonName: string

The issuer subject's common name.

issuerName: string

The subject identifying the issuer certificate.

issuerOrganization: string

The issuer subject's organization.

issuerOrganizationUnit: string

The issuer subject's organizational unit.

organization: string

The subject's organization.

organizationalUnit: string

The subject's organizational unit.

serialNumber: string

The serial number the issuer assigned to this certificate.

sha1Fingerprint: string

The fingerprint of the certificate's DER encoding, calculated using the SHA1 algorithm.

sha256Fingerprint: string

The fingerprint of the certificate's DER encoding, calculated using the SHA-256 algorithm.

sha256SubjectPublicKeyInfoDigest: string

The base64 encoding of the DER encoded public key info using the specified digest.

subjectName: string

The subject owning the certificate.

tokenName: string

A human readable name identifying the hardware or software token the certificate is stored on.

validity: nsIX509CertValidity

This certificate's validity period.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aReader: IpcMessageReaderPtr

    Returns bool

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aWriter: IpcMessageWriterPtr

    Returns void

  • Check whether a given address is contained in the certificate. The comparison will convert the email address to lowercase. The behaviour for non ASCII characters is undefined.

    Returns

    True if the address is contained in the certificate.

    Parameters

    • aEmailAddress: string

      The address to search for.

    Returns boolean

  • Obtain a base 64 string representation of this certificate in DER format.

    Returns

    The DER encoded certificate as a string.

    Returns string

  • Retrieves the NSS certificate object wrapped by this interface

    Returns CERTCertificatePtr

Generated using TypeDoc