Struct xpcom::interfaces::nsISecretDecoderRing [] [src]

#[repr(C)]
pub struct nsISecretDecoderRing { /* fields omitted */ }

interface nsISecretDecoderRing : nsISupports

Methods

impl nsISecretDecoderRing
[src]

[src]

Cast this nsISecretDecoderRing to one of its base interfaces.

impl nsISecretDecoderRing
[src]

[src]

/**
   * 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);

[src]

/**
   * 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);

[src]

/**
   * Prompt the user to change the password on the SDR key.
   */

[must_use] void changePassword ();

[src]

/**
   * Logout of the security device that protects the SDR key.
   */

[must_use] void logout ();

[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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsISecretDecoderRing
[src]

IID: nsIID = nsID(247989088, 1884, 4564, [159, 212, 0, 192, 79, 27, 131, 216])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsISecretDecoderRing
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.