Struct xpcom::interfaces::nsICertificateDialogs [] [src]

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

interface nsICertificateDialogs : nsISupports

/**
 * Functions that implement user interface dialogs to manage certificates.
 */

Methods

impl nsICertificateDialogs
[src]

[src]

Cast this nsICertificateDialogs to one of its base interfaces.

impl nsICertificateDialogs
[src]

[src]

/**
   *  UI shown when a user is asked to download a new CA cert.
   *  Provides user with ability to choose trust settings for the cert.
   *  Asks the user to grant permission to import the certificate.
   *
   *  @param ctx A user interface context.
   *  @param cert The certificate that is about to get installed.
   *  @param trust A bit mask of trust flags.
   *               See nsIX509CertDB for possible values.
   *
   *  @return true if the user allows to import the certificate.
   */

[must_use] boolean confirmDownloadCACert (in nsIInterfaceRequestor ctx, in nsIX509Cert cert, out unsigned long trust);

[src]

/**
   *  UI shown when a user's personal certificate is going to be
   *  exported to a backup file.
   *  The implementation of this dialog should make sure to prompt the user to
   *  type the password twice in order to confirm correct input.
   *  The wording in the dialog should also motivate the user to enter a strong
   *  password.
   *
   *  @param ctx A user interface context.
   *  @param password The password provided by the user.
   *
   *  @return false if the user requests to cancel.
   */

[must_use] boolean setPKCS12FilePassword (in nsIInterfaceRequestor ctx, out AString password);

[src]

/**
   *  UI shown when a user is about to restore a personal
   *  certificate from a backup file.
   *  The user is requested to enter the password
   *  that was used in the past to protect that backup file.
   *
   *  @param ctx A user interface context.
   *  @param password The password provided by the user.
   *
   *  @return false if the user requests to cancel.
   */

[must_use] boolean getPKCS12FilePassword (in nsIInterfaceRequestor ctx, out AString password);

[src]

/**
   *  UI shown when a certificate needs to be shown to the user.
   *  The implementation should try to display as many attributes
   *  as possible.
   *
   *  @param ctx A user interface context.
   *  @param cert The certificate to be shown to the user.
   */

[must_use] void viewCert (in nsIInterfaceRequestor ctx, in nsIX509Cert cert);

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

IID: nsIID = nsID(3666288043, 63134, 16755, [171, 38, 153, 252, 212, 123, 14, 133])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICertificateDialogs
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.