|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.credentialsstorage.CredentialsStorageServiceImpl
public class CredentialsStorageServiceImpl
Implements CredentialsStorageService to load and store user
credentials from/to the ConfigurationService.
| Field Summary | |
|---|---|
static String |
ACCOUNT_ENCRYPTED_PASSWORD
The name of a property which represents an encrypted password. |
static String |
ACCOUNT_UNENCRYPTED_PASSWORD
The name of a property which represents an unencrypted password. |
| Constructor Summary | |
|---|---|
CredentialsStorageServiceImpl()
|
|
| Method Summary | |
|---|---|
boolean |
changeMasterPassword(String oldPassword,
String newPassword)
Changes the master password from the old to the new one. |
boolean |
isStoredEncrypted(String accountPrefix)
Check if encrypted account password is saved in the configuration. |
boolean |
isUsingMasterPassword()
Checks if master password is used to encrypt saved account passwords. |
String |
loadPassword(String accountPrefix)
Loads the password for the specified account. |
boolean |
removePassword(String accountPrefix)
Removes the password for the account that starts with the given prefix by setting its value in the configuration to null. |
(package private) void |
start(org.osgi.framework.BundleContext bc)
Initializes the credentials service by fetching the configuration service reference from the bundle context. |
(package private) void |
stop()
Forget the encryption/decryption key when stopping the service. |
boolean |
storePassword(String accountPrefix,
String password)
Stores the password for the specified account. |
boolean |
verifyMasterPassword(String master)
Verifies the correctness of the master password. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ACCOUNT_ENCRYPTED_PASSWORD
public static final String ACCOUNT_UNENCRYPTED_PASSWORD
| Constructor Detail |
|---|
public CredentialsStorageServiceImpl()
| Method Detail |
|---|
void start(org.osgi.framework.BundleContext bc)
bc - bundle contextvoid stop()
public boolean storePassword(String accountPrefix,
String password)
storePassword in interface CredentialsStorageServiceaccountPrefix - account prefixpassword - the password to store
storePassword(String, String)public String loadPassword(String accountPrefix)
loadPassword in interface CredentialsStorageServiceaccountPrefix - account prefix
createCrypto()public boolean removePassword(String accountPrefix)
removePassword in interface CredentialsStorageServiceaccountPrefix - account prefix
public boolean isUsingMasterPassword()
isUsingMasterPassword in interface CredentialsStorageServicepublic boolean verifyMasterPassword(String master)
MASTER_PROP_VALUE
is equal to the decrypted MASTER_PROP's value, then
the MP is considered correct.
verifyMasterPassword in interface CredentialsStorageServicemaster - master password
public boolean changeMasterPassword(String oldPassword,
String newPassword)
changeMasterPassword in interface CredentialsStorageServiceoldPassword - old master passwordnewPassword - new master password
public boolean isStoredEncrypted(String accountPrefix)
isStoredEncrypted in interface CredentialsStorageServiceaccountPrefix - account prefix
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||