nsISupports
Last changed in Gecko 1.0 See Using nsIPasswordManager for examples.
Implemented by: @mozilla.org/passwordmanager;1
. To create an instance, use:
var passwordManager = Components.classes["@mozilla.org/passwordmanager;1"] .getService(Components.interfaces.nsIPasswordManager);
void addUser(in AUTF8String aHost, in AString aUser, in AString aPassword); |
void removeUser(in AUTF8String aHost, in AString aUser); |
void addReject(in AUTF8String aHost); |
void removeReject(in AUTF8String aHost); |
Attribute | Type | Description |
enumerator |
|
Readonly: An enumeration of the stored usernames and passwords as nsIPassword objects. |
enumerator |
|
Readonly: An enumeration of the rejected sites as nsIPassword objects. Only the host portion of these objects is relevant. |
Stores a password.
AString addUser(in AUTF8String aHost, in AString aUser, in AString aPassword);
aHost
aUser
aPassword
Removes a stored password.
void removeUser(in AUTF8String aHost, in AString aUser);
aHost
aUser
Blocks a hostname from having its passwords saved.
void addReject(in AUTF8String aHost);
aHost
Unblocks a hostname from having its passwords saved.
void removeReject(in AUTF8String aHost);
aHost