WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIPasswordManagerInternal

IID:a448531f-dc92-4dc1-9012-da841febcbe0
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 addUserFull2 ( AUTF8String key , AString user , AString password , AString userFieldName , AString passFieldName , AUTF8String ActionURL ) 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 addUserFull2 ( AUTF8String key , AString user , AString password , AString userFieldName , AString passFieldName , AUTF8String ActionURL )

Arguments:
key
user
password
userFieldName
passFieldName
ActionURL

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.

Copyright © 1999-2006 XULPlanet.com