-
- All Implemented Interfaces:
-
net.gini.android.core.api.authorization.CredentialsStore
public class EncryptedCredentialsStore implements CredentialsStore
Internal use only.
-
-
Constructor Summary
Constructors Constructor Description EncryptedCredentialsStore(SharedPreferences sharedPreferences, Context context)
-
Method Summary
Modifier and Type Method Description voidencryptExistingPlaintextCredentials()booleanstoreUserCredentials(UserCredentials userCredentials)Store the given user credentials. UserCredentialsgetUserCredentials()Returns the stored user credentials. booleandeleteUserCredentials()Deletes the stored user credentials. -
-
Constructor Detail
-
EncryptedCredentialsStore
EncryptedCredentialsStore(SharedPreferences sharedPreferences, Context context)
-
-
Method Detail
-
encryptExistingPlaintextCredentials
void encryptExistingPlaintextCredentials()
-
storeUserCredentials
boolean storeUserCredentials(UserCredentials userCredentials)
Store the given user credentials. Warning: This method overwrites existing user credentials.
- Parameters:
userCredentials- The user's credentials.
-
getUserCredentials
UserCredentials getUserCredentials()
Returns the stored user credentials. Warning: If there are no stored user credentials, this method returns null.
-
deleteUserCredentials
boolean deleteUserCredentials()
Deletes the stored user credentials.
-
-
-
-