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]
pub fn coerce<T: nsICertificateDialogsCoerce>(&self) -> &T
[src]
Cast this nsICertificateDialogs
to one of its base interfaces.
impl nsICertificateDialogs
[src]
pub unsafe fn ConfirmDownloadCACert(
&self,
ctx: *const nsIInterfaceRequestor,
cert: *const nsIX509Cert,
trust: *mut uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
ctx: *const nsIInterfaceRequestor,
cert: *const nsIX509Cert,
trust: *mut uint32_t,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn SetPKCS12FilePassword(
&self,
ctx: *const nsIInterfaceRequestor,
password: &mut nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
ctx: *const nsIInterfaceRequestor,
password: &mut nsAString,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn GetPKCS12FilePassword(
&self,
ctx: *const nsIInterfaceRequestor,
password: &mut nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
ctx: *const nsIInterfaceRequestor,
password: &mut nsAString,
_retval: *mut bool
) -> nsresult
/**
* 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);
pub unsafe fn ViewCert(
&self,
ctx: *const nsIInterfaceRequestor,
cert: *const nsIX509Cert
) -> nsresult
[src]
&self,
ctx: *const nsIInterfaceRequestor,
cert: *const nsIX509Cert
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsICertificateDialogs
[src]
const IID: nsIID
IID: nsIID = nsID(3666288043, 63134, 16755, [171, 38, 153, 252, 212, 123, 14, 133])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsICertificateDialogs
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.