public static class BoxAuthentication.AuthStorage
extends java.lang.Object
| Constructor and Description |
|---|
AuthStorage() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAuthInfoMap(android.content.Context context)
Removes auth info from storage.
|
protected java.lang.String |
getLastAuthentictedUserId(android.content.Context context)
Return the last user id associated with the last authentication.
|
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,BoxAuthentication.BoxAuthenticationInfo> |
loadAuthInfoMap(android.content.Context context)
Load auth info from storage.
|
protected void |
storeAuthInfoMap(java.util.Map<java.lang.String,BoxAuthentication.BoxAuthenticationInfo> authInfo,
android.content.Context context)
Store the auth info into storage.
|
protected void |
storeLastAuthenticatedUserId(java.lang.String userId,
android.content.Context context)
Store out the last user id that the user authenticated as.
|
protected void storeAuthInfoMap(java.util.Map<java.lang.String,BoxAuthentication.BoxAuthenticationInfo> authInfo, android.content.Context context)
authInfo - auth info to store.context - context here is only used to load shared pref. In case you don't need shared pref, you can ignore this
argument in your implementation.protected void clearAuthInfoMap(android.content.Context context)
context - context here is only used to load shared pref. In case you don't need shared pref, you can ignore this
argument in your implementation.protected void storeLastAuthenticatedUserId(java.lang.String userId,
android.content.Context context)
userId - user id of the last authenticated user. null if this data should be removed.context - context here is only used to load shared pref. In case you don't need shared pref, you can ignore this
argument in your implementation.protected java.lang.String getLastAuthentictedUserId(android.content.Context context)
context - context here is only used to load shared pref. In case you don't need shared pref, you can ignore this
argument in your implementation.protected java.util.concurrent.ConcurrentHashMap<java.lang.String,BoxAuthentication.BoxAuthenticationInfo> loadAuthInfoMap(android.content.Context context)
context - context here is only used to load shared pref. In case you don't need shared pref, you can ignore this
argument in your implementation.