Struct xpcom::interfaces::nsICertBlocklist [] [src]

#[repr(C)]
pub struct nsICertBlocklist { /* fields omitted */ }

interface nsICertBlocklist : nsISupports

/**
 * Represents a service to add certificates as explicitly blocked/distrusted.
 */

Methods

impl nsICertBlocklist
[src]

[src]

Cast this nsICertBlocklist to one of its base interfaces.

impl nsICertBlocklist
[src]

[src]

/**
   * Add details of a revoked certificate :
   * issuer name (base-64 encoded DER) and serial number (base-64 encoded DER).
   */

[must_use] void revokeCertByIssuerAndSerial (in ACString issuer, in ACString serialNumber);

[src]

/**
   * Add details of a revoked certificate :
   * subject name (base-64 encoded DER) and hash of public key (base-64 encoded
   * sha-256 hash of the public key).
   */

[must_use] void revokeCertBySubjectAndPubKey (in ACString subject, in ACString pubKeyHash);

[src]

/**
   * Persist (fresh) blocklist entries to the profile (if a profile directory is
   * available). Note: calling this will result in synchronous I/O.
   */

[must_use] void saveEntries ();

[src]

/**
   * Check if a certificate is blocked.
   * issuer - issuer name, DER encoded
   * serial - serial number, DER encoded
   * subject - subject name, DER encoded
   * pubkey - public key, DER encoded
   */

[must_use] boolean isCertRevoked ([array, size_is (issuer_length), const] in octet issuer, in unsigned long issuer_length, [array, size_is (serial_length), const] in octet serial, in unsigned long serial_length, [array, size_is (subject_length), const] in octet subject, in unsigned long subject_length, [array, size_is (pubkey_length), const] in octet pubkey, in unsigned long pubkey_length);

[src]

/**
    * Check that the blocklist data is current. Specifically, that the current
    * time is no more than security.onecrl.maximum_staleness_in_seconds seconds
    * after the last blocklist update (as stored in the
    * app.update.lastUpdateTime.blocklist-background-update-timer pref)
    */

[must_use] boolean isBlocklistFresh ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsICertBlocklist
[src]

IID: nsIID = nsID(3764733056, 62515, 4580, [185, 57, 8, 0, 32, 12, 154, 102])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsICertBlocklist
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICertBlocklist
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.