Struct xpcom::interfaces::nsILoginManagerCrypto
[−]
[src]
#[repr(C)]pub struct nsILoginManagerCrypto { /* fields omitted */ }
interface nsILoginManagerCrypto : nsISupports
Methods
impl nsILoginManagerCrypto
[src]
pub fn coerce<T: nsILoginManagerCryptoCoerce>(&self) -> &T
[src]
Cast this nsILoginManagerCrypto
to one of its base interfaces.
impl nsILoginManagerCrypto
[src]
pub const ENCTYPE_BASE64: i64
ENCTYPE_BASE64: i64 = 0
pub const ENCTYPE_SDR: i64
ENCTYPE_SDR: i64 = 1
pub unsafe fn Encrypt(
&self,
plainText: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
plainText: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* encrypt
*
* @param plainText
* The string to be encrypted.
*
* Encrypts the specified string, returning the ciphertext value.
*
* NOTE: The current implemention of this inferface simply uses NSS/PSM's
* "Secret Decoder Ring" service. It is not recommended for general
* purpose encryption/decryption.
*
* Can throw if the user cancels entry of their master password.
*/
AString encrypt (in AString plainText);
pub unsafe fn Decrypt(
&self,
cipherText: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
cipherText: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* decrypt
*
* @param cipherText
* The string to be decrypted.
*
* Decrypts the specified string, returning the plaintext value.
*
* Can throw if the user cancels entry of their master password, or if the
* cipherText value can not be successfully decrypted (eg, if it was
* encrypted with some other key).
*/
AString decrypt (in AString cipherText);
pub unsafe fn GetUiBusy(&self, aUiBusy: *mut bool) -> nsresult
[src]
/**
* uiBusy
*
* True when a master password prompt is being displayed.
*/
readonly attribute boolean uiBusy;
pub unsafe fn GetIsLoggedIn(&self, aIsLoggedIn: *mut bool) -> nsresult
[src]
/**
* isLoggedIn
*
* Current login state of the token used for encryption. If the user is
* not logged in, performing a crypto operation will result in a master
* password prompt.
*/
readonly attribute boolean isLoggedIn;
pub unsafe fn GetDefaultEncType(
&self,
aDefaultEncType: *mut uint32_t
) -> nsresult
[src]
&self,
aDefaultEncType: *mut uint32_t
) -> nsresult
/**
* defaultEncType
*
* Default encryption type used by an implementation of this interface.
*/
readonly attribute unsigned long defaultEncType;
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 nsILoginManagerCrypto
[src]
const IID: nsIID
IID: nsIID = nsID(540047118, 21550, 16589, [128, 97, 205, 157, 74, 212, 34, 127])
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 nsILoginManagerCrypto
[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 nsILoginManagerCrypto
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.