Struct xpcom::interfaces::nsILocalCertService
[−]
[src]
#[repr(C)]pub struct nsILocalCertService { /* fields omitted */ }
interface nsILocalCertService : nsISupports
Methods
impl nsILocalCertService
[src]
pub fn coerce<T: nsILocalCertServiceCoerce>(&self) -> &T
[src]
Cast this nsILocalCertService
to one of its base interfaces.
impl nsILocalCertService
[src]
pub unsafe fn GetOrCreateCert(
&self,
nickname: &nsACString,
cb: *const nsILocalCertGetCallback
) -> nsresult
[src]
&self,
nickname: &nsACString,
cb: *const nsILocalCertGetCallback
) -> nsresult
/**
* 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);
pub unsafe fn RemoveCert(
&self,
nickname: &nsACString,
cb: *const nsILocalCertCallback
) -> nsresult
[src]
&self,
nickname: &nsACString,
cb: *const nsILocalCertCallback
) -> nsresult
/**
* 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);
pub unsafe fn GetLoginPromptRequired(
&self,
aLoginPromptRequired: *mut bool
) -> nsresult
[src]
&self,
aLoginPromptRequired: *mut bool
) -> nsresult
/**
* 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>
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 nsILocalCertService
[src]
const IID: nsIID
IID: nsIID = nsID(2533555668, 19500, 17308, [186, 46, 25, 205, 160, 24, 235, 153])
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 nsILocalCertService
[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 nsILocalCertService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.