Struct xpcom::interfaces::nsISecretDecoderRing
[−]
[src]
#[repr(C)]pub struct nsISecretDecoderRing { /* fields omitted */ }
interface nsISecretDecoderRing : nsISupports
Methods
impl nsISecretDecoderRing
[src]
pub fn coerce<T: nsISecretDecoderRingCoerce>(&self) -> &T
[src]
Cast this nsISecretDecoderRing
to one of its base interfaces.
impl nsISecretDecoderRing
[src]
pub unsafe fn EncryptString(
&self,
text: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
text: &nsACString,
_retval: &mut nsACString
) -> nsresult
/**
* Encrypt to Base64 output.
* Note that the input must basically be a byte array (i.e. the code points
* must be within the range [0, 255]). Hence, using this method directly to
* encrypt passwords (or any text, really) won't work as expected.
* Instead, use something like nsIScriptableUnicodeConverter to first convert
* the desired password or text to UTF-8, then encrypt that. Remember to
* convert back when calling decryptString().
*
* @param text The text to encrypt.
* @return The encrypted text, encoded as Base64.
*/
[must_use] ACString encryptString (in ACString text);
pub unsafe fn DecryptString(
&self,
encryptedBase64Text: &nsACString,
_retval: &mut nsACString
) -> nsresult
[src]
&self,
encryptedBase64Text: &nsACString,
_retval: &mut nsACString
) -> nsresult
/**
* Decrypt Base64 input.
* See the encryptString() documentation - this method has basically the same
* limitations.
*
* @param encryptedBase64Text Encrypted input text, encoded as Base64.
* @return The decoded text.
*/
[must_use] ACString decryptString (in ACString encryptedBase64Text);
pub unsafe fn ChangePassword(&self) -> nsresult
[src]
/**
* Prompt the user to change the password on the SDR key.
*/
[must_use] void changePassword ();
pub unsafe fn Logout(&self) -> nsresult
[src]
/**
* Logout of the security device that protects the SDR key.
*/
[must_use] void logout ();
pub unsafe fn LogoutAndTeardown(&self) -> nsresult
[src]
/**
* Logout of the security device that protects the SDR key and tear
* down authenticated objects.
*/
[must_use] void logoutAndTeardown ();
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 nsISecretDecoderRing
[src]
const IID: nsIID
IID: nsIID = nsID(247989088, 1884, 4564, [159, 212, 0, 192, 79, 27, 131, 216])
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 nsISecretDecoderRing
[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 nsISecretDecoderRing
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.