public final class SimpleCredentialsStore extends java.lang.Object implements CredentialsStore
CredentialsStore which does store the credentials in a member
variable. This may be suitable when the destruction of the CredentialsProvider is
announced and the credentials can be stored whenever this event occurs. Within this even the
getCredentials() method can be called to store the credentials.| Constructor and Description |
|---|
SimpleCredentialsStore() |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
getCredentials() |
void |
updateCredentials(Credentials credentials)
This method stores the credentials into a more permanent location.
|
public Credentials getCredentials()
getCredentials in interface CredentialsStorenull when there are not credentials present
in the store.public void updateCredentials(Credentials credentials)
CredentialsStoreActivity or Fragment.
The implementor may delay the storage until a destruction event occurs. The storage does not have to be reliable (e.g. an app crash has not to be survived).
updateCredentials in interface CredentialsStorecredentials - the credentials which should be stored.