Class StoreAuthInfo
- java.lang.Object
-
- com.mongodb.stitch.core.auth.internal.AuthInfo
-
- com.mongodb.stitch.core.auth.internal.models.StoreAuthInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTIVE_USER_STORAGE_NAME
static String
ALL_USERS_STORAGE_NAME
-
Constructor Summary
Constructors Constructor Description StoreAuthInfo(String userId, String deviceId, String accessToken, String refreshToken, String loggedInProviderType, String loggedInProviderName, com.mongodb.stitch.core.auth.internal.models.StoreCoreUserProfile userProfile, Date lastAuthActivity)
Constructs aStoreAuthInfo
from storage.StoreAuthInfo(String userId, String deviceId, String accessToken, String refreshToken, String loggedInProviderType, String loggedInProviderName, StitchUserProfileImpl userProfile, Date lastAuthActivity)
Constructs a fully specifiedStoreAuthInfo
.
-
Method Summary
-
Methods inherited from class com.mongodb.stitch.core.auth.internal.AuthInfo
equals, getAccessToken, getDecodedAccessToken, getDeviceId, getLastAuthActivity, getLoggedInProviderName, getLoggedInProviderType, getRefreshToken, getUserId, getUserProfile, hashCode, hasUser, isLoggedIn
-
-
-
-
Field Detail
-
ALL_USERS_STORAGE_NAME
public static final String ALL_USERS_STORAGE_NAME
- See Also:
- Constant Field Values
-
ACTIVE_USER_STORAGE_NAME
public static final String ACTIVE_USER_STORAGE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StoreAuthInfo
public StoreAuthInfo(String userId, String deviceId, String accessToken, String refreshToken, String loggedInProviderType, String loggedInProviderName, com.mongodb.stitch.core.auth.internal.models.StoreCoreUserProfile userProfile, Date lastAuthActivity)
Constructs aStoreAuthInfo
from storage.- Parameters:
userId
- the id of the user.deviceId
- the device id of the user.accessToken
- the current access token for the logged in user.refreshToken
- the current refresh token for the logged in user.loggedInProviderType
- the type of provider used to log in the current user.loggedInProviderName
- the name of the provider used to log in the current user.userProfile
- profile information about the user.lastAuthActivity
- time since the Unix Epoch of the last auth event for this user
-
StoreAuthInfo
public StoreAuthInfo(String userId, String deviceId, String accessToken, String refreshToken, String loggedInProviderType, String loggedInProviderName, StitchUserProfileImpl userProfile, Date lastAuthActivity)
Constructs a fully specifiedStoreAuthInfo
.- Parameters:
userId
- the id of the user.deviceId
- the device id of the user.accessToken
- the current access token for the logged in user.refreshToken
- the current refresh token for the logged in user.loggedInProviderType
- the type of provider used to log in the current user.loggedInProviderName
- the name of the provider used to log in the current user.userProfile
- profile information about the user.lastAuthActivity
- time since the Unix Epoch of the last auth event for this user
-
-