Struct xpcom::interfaces::nsILocalCertService [] [src]

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

interface nsILocalCertService : nsISupports

Methods

impl nsILocalCertService
[src]

[src]

Cast this nsILocalCertService to one of its base interfaces.

impl nsILocalCertService
[src]

[src]

/**
   * Get or create a new self-signed X.509 cert to represent this device over a
   * secure transport, like TLS.
   *
   * The cert is stored permanently in the profile's key store after first use,
   * and is valid for 1 year.  If an expired or otherwise invalid cert is found
   * with the nickname supplied here, it is removed and a new one is made.
   *
   * @param nickname Nickname that identifies the cert
   * @param cb       Callback to be notified with the result
   */

[must_use] void getOrCreateCert (in ACString nickname, in nsILocalCertGetCallback cb);

[src]

/**
   * Remove a X.509 cert with the given nickname.
   *
   * @param nickname Nickname that identifies the cert
   * @param cb       Callback to be notified with the result
   */

[must_use] void removeCert (in ACString nickname, in nsILocalCertCallback cb);

[src]

/**
   * Whether calling |getOrCreateCert| or |removeCert| will trigger a login
   * prompt to be displayed.  Generally this happens if the user has set a
   * master password, but has not yet logged in.
   */

[must_use] readonly attribute boolean loginPromptRequired;

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 nsILocalCertService
[src]

IID: nsIID = nsID(2533555668, 19500, 17308, [186, 46, 25, 205, 160, 24, 235, 153])

[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 nsILocalCertService
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsILocalCertService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.