public class UserSessionInfoProvider extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
UserSessionInfoProvider.UserSessionInfoChangeListener |
Modifier and Type | Method and Description |
---|---|
UserSessionInfo |
getSession() |
static UserSessionInfo |
mergeReauthToken(UserSessionInfo previousSession,
UserSessionInfo session)
The server is only guaranteed to send the reauth token on sign in, it is not sent in all UserSessionInfo
responses for security reasons.
|
UserSessionInfo |
retrieveSession()
Retrieves a session.
|
public UserSessionInfo getSession()
public UserSessionInfo retrieveSession() throws IOException
IOException
- problem while signing inpublic static UserSessionInfo mergeReauthToken(UserSessionInfo previousSession, UserSessionInfo session)
previousSession
- older sessionsession
- new session, with reauthToken copied over from previousSession if the new session did not have
a reauth tokenCopyright © 2023 Sage Bionetworks. All rights reserved.