public static interface BoxAuthentication.AuthenticationRefreshProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
launchAuthUi(java.lang.String userId,
BoxSession session)
This method should launch an activity or perform necessary logic in order to authenticate a user for the first time or re-authenticate a user if necessary.
|
BoxAuthentication.BoxAuthenticationInfo |
refreshAuthenticationInfo(BoxAuthentication.BoxAuthenticationInfo info)
This method should return a refreshed authentication info object given one that is expired or nearly expired.
|
BoxAuthentication.BoxAuthenticationInfo refreshAuthenticationInfo(BoxAuthentication.BoxAuthenticationInfo info) throws BoxException
info - the expired authentication information.BoxException - Exception that should be thrown if there was a problem fetching the information.boolean launchAuthUi(java.lang.String userId,
BoxSession session)
userId - the user id that needs re-authentication if known. For a new user this will be null.session - the session that is attempting to launch authentication ui.