Struct xpcom::interfaces::nsILoginManagerCrypto [] [src]

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

interface nsILoginManagerCrypto : nsISupports

Methods

impl nsILoginManagerCrypto
[src]

[src]

Cast this nsILoginManagerCrypto to one of its base interfaces.

impl nsILoginManagerCrypto
[src]

ENCTYPE_BASE64: i64 = 0

ENCTYPE_SDR: i64 = 1

[src]

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

[src]

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

[src]

/**
   * uiBusy
   *
   * True when a master password prompt is being displayed.
   */

readonly attribute boolean uiBusy;

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

[src]

/**
   * defaultEncType
   *
   * Default encryption type used by an implementation of this interface.
   */

readonly attribute unsigned long defaultEncType;

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

IID: nsIID = nsID(540047118, 21550, 16589, [128, 97, 205, 157, 74, 212, 34, 127])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsILoginManagerCrypto
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.