Package net.gini.android.authorization
Interface CredentialsStore
-
- All Known Implementing Classes:
EncryptedCredentialsStore
,SharedPreferencesCredentialsStore
public interface CredentialsStore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deleteUserCredentials()
Deletes the stored user credentials.UserCredentials
getUserCredentials()
Returns the stored user credentials.boolean
storeUserCredentials(UserCredentials userCredentials)
Store the given user credentials.
-
-
-
Method Detail
-
storeUserCredentials
boolean storeUserCredentials(UserCredentials userCredentials)
Store the given user credentials. Warning: This method overwrites existing user credentials.- Parameters:
userCredentials
- The user's credentials.- Returns:
- Whether the storing of the credentials was successful.
-
getUserCredentials
UserCredentials getUserCredentials()
Returns the stored user credentials. Warning: If there are no stored user credentials, this method returns null.- Returns:
- The stored user credentials.
-
deleteUserCredentials
boolean deleteUserCredentials()
Deletes the stored user credentials.- Returns:
- Whether the deleting of the credentials was successful.
-
-