nsIPasswordManagerInternal

IID:dc2ff152-85cb-474e-b4c2-86a3d48cf4d0
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void addUserFull ( AUTF8String key , AString user , AString password , AString userFieldName , AString passFieldName ) void findPasswordEntry ( AUTF8String hostURI , AString username , AString password , out AUTF8String hostURIFound , out AString usernameFound , out AString passwordFound ) void readPasswords ( nsIFile passwordFile )

void addUserFull ( AUTF8String key , AString user , AString password , AString userFieldName , AString passFieldName )

Called to add an individual login to the list of saved logins. All parameters are clear text.

Arguments:
key: The key for which the login is being remembered (often the page URI)
user: The username portion of the login
password: The password portion of the login
userFieldName: The name of the field that contained the username
passFieldName: The name of the field that contained the password

void findPasswordEntry ( AUTF8String hostURI , AString username , AString password , out AUTF8String hostURIFound , out AString usernameFound , out AString passwordFound )

A Call to find a login in the password manager list that matches the specified parameters. If any input parameter is null, it is not tested for when looking for the match.

Arguments:
hostURI: The uri part of a login to search for, or null
username: The username part of a login to search for, or null
password: The password part of a login to search for, or null
hostURIFound: The uri found in the login
usernameFound: The username found in the login
passwordFound: The password found in the login

void readPasswords ( nsIFile passwordFile )

Reads logins from a Mozilla Password Manager file, augmenting the current in-memory set. If a duplicate entry is encountered, the data from the file being read replaces that currently held.

Arguments:
passwordFile: The file to read logins from.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com