Package com.teamdev.jxbrowser.password
Interface PasswordStore
- All Superinterfaces:
ProfileService
A service for working with logins and passwords saved in
the Chromium password store.
- Since:
- 7.20
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd(PasswordRecord passwordRecord) Adds a new record to the password store.all()Returns all saved and blacklisted (marked as "never-saved") records from the password store.Returns only blacklisted (marked as "never-saved") records from the password store.allSaved()Returns only saved records from the password store.voidclear()Clears all records in the password store.voidClears all records in the password store created in the given timerange.voidremoveByUrl(String url) Removes records associated with thisurlfrom the password store.Methods inherited from interface com.teamdev.jxbrowser.profile.ProfileService
profile
-
Method Details
-
add
Adds a new record to the password store.- Parameters:
passwordRecord- a new password record- Returns:
- a string indicating the reason for validation failure, or an empty one if the operation succeeds
- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed- Since:
- 8.0.0
-
all
List<PasswordRecord> all()Returns all saved and blacklisted (marked as "never-saved") records from the password store.Blacklisted records have only URLs, login is empty.
- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed
-
allSaved
List<PasswordRecord> allSaved()Returns only saved records from the password store.- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed
-
allNeverSaved
List<PasswordRecord> allNeverSaved()Returns only blacklisted (marked as "never-saved") records from the password store.- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed
-
removeByUrl
Removes records associated with thisurlfrom the password store.- Throws:
ObjectClosedException- when the profile is deleted or its engine is closedIllegalArgumentException- whenurlisnullor empty.
-
clear
void clear()Clears all records in the password store.- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed
-
clear
Clears all records in the password store created in the given timerange.- Throws:
ObjectClosedException- when the profile is deleted or its engine is closed- Since:
- 8.8.0
-