Class StoreAuthInfo


  • public final class StoreAuthInfo
    extends AuthInfo
    An AuthInfo for local persistence.
    • 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 a StoreAuthInfo 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 specified StoreAuthInfo.
        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