Struct xpcom::interfaces::nsIClientAuthDialogs
[−]
[src]
#[repr(C)]pub struct nsIClientAuthDialogs { /* fields omitted */ }
interface nsIClientAuthDialogs : nsISupports
/**
* Provides UI for SSL client-auth dialogs.
*/
Methods
impl nsIClientAuthDialogs
[src]
pub fn coerce<T: nsIClientAuthDialogsCoerce>(&self) -> &T
[src]
Cast this nsIClientAuthDialogs
to one of its base interfaces.
impl nsIClientAuthDialogs
[src]
pub unsafe fn ChooseCertificate(
&self,
ctx: *const nsIInterfaceRequestor,
hostname: &nsACString,
port: int32_t,
organization: &nsACString,
issuerOrg: &nsACString,
certList: *const nsIArray,
selectedIndex: *mut uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
ctx: *const nsIInterfaceRequestor,
hostname: &nsACString,
port: int32_t,
organization: &nsACString,
issuerOrg: &nsACString,
certList: *const nsIArray,
selectedIndex: *mut uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Called when a user is asked to choose a certificate for client auth.
*
* @param ctx Context that allows at least nsIClientAuthUserDecision to be
* queried.
* @param hostname Hostname of the server.
* @param port Port of the server.
* @param organization Organization field of the server cert.
* @param issuerOrg Organization field of the issuer cert of the server cert.
* @param certList List of certificates the user can choose from.
* @param selectedIndex Index of the cert in |certList| that the user chose.
* Ignored if the return value is false.
* @return true if a certificate was chosen. false if the user canceled.
*/
[must_use] boolean chooseCertificate (in nsIInterfaceRequestor ctx, in AUTF8String hostname, in long port, in AUTF8String organization, in AUTF8String issuerOrg, in nsIArray certList, out unsigned long selectedIndex);
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 nsIClientAuthDialogs
[src]
const IID: nsIID
IID: nsIID = nsID(4199314720, 5171, 4565, [186, 36, 0, 16, 131, 3, 177, 23])
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 nsIClientAuthDialogs
[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 nsIClientAuthDialogs
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.