public interface CredentialsStorageService
Modifier and Type | Method and Description |
---|---|
boolean |
changeMasterPassword(java.lang.String oldPassword,
java.lang.String newPassword)
Changes the old master password to the new one.
|
boolean |
isStoredEncrypted(java.lang.String accountPrefix)
Checks if the account password that starts with the given prefix is saved
in encrypted form.
|
boolean |
isUsingMasterPassword()
Checks if master password was set by the user and
it is used to encrypt saved account passwords.
|
java.lang.String |
loadPassword(java.lang.String accountPrefix)
Load the password for the account that starts with the given prefix.
|
boolean |
removePassword(java.lang.String accountPrefix)
Remove the password for the account that starts with the given prefix.
|
boolean |
storePassword(java.lang.String accountPrefix,
java.lang.String password)
Store the password for the account that starts with the given prefix.
|
boolean |
verifyMasterPassword(java.lang.String master)
Verifies the correctness of the master password.
|
boolean storePassword(java.lang.String accountPrefix, java.lang.String password)
accountPrefix
- account prefixpassword
- the password to storejava.lang.String loadPassword(java.lang.String accountPrefix)
accountPrefix
- account prefixboolean removePassword(java.lang.String accountPrefix)
accountPrefix
- account prefixboolean isUsingMasterPassword()
boolean changeMasterPassword(java.lang.String oldPassword, java.lang.String newPassword)
oldPassword
- the old master passwordnewPassword
- the new master passwordboolean verifyMasterPassword(java.lang.String master)
master
- the master password to verifyboolean isStoredEncrypted(java.lang.String accountPrefix)
accountPrefix
- account prefix
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.