See Using nsIPasswordManager for examples of nsIPassword in use.