Package org.nuxeo.ecm.liveconnect.box
Class BoxOAuth2ServiceProvider
- java.lang.Object
-
- org.nuxeo.ecm.platform.oauth2.providers.NuxeoOAuth2ServiceProvider
-
- org.nuxeo.ecm.platform.oauth2.providers.AbstractOAuth2UserEmailProvider
-
- org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectOAuth2ServiceProvider
-
- org.nuxeo.ecm.liveconnect.box.BoxOAuth2ServiceProvider
-
- All Implemented Interfaces:
OAuth2ServiceProvider
public class BoxOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider
- Since:
- 8.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.oauth2.providers.NuxeoOAuth2ServiceProvider
CODE_URL_PARAMETER, description, ERROR_URL_PARAMETER, HTTP_TRANSPORT, id, JSON_FACTORY, SCHEMA, serviceName, serviceUserStore, tokenStore, userAuthorizationURL
-
-
Constructor Summary
Constructors Constructor Description BoxOAuth2ServiceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.api.client.http.HttpRequestFactory
getRequestFactory()
protected String
getUserEmail(String accessToken)
-
Methods inherited from class org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectOAuth2ServiceProvider
getServiceUser
-
Methods inherited from class org.nuxeo.ecm.platform.oauth2.providers.AbstractOAuth2UserEmailProvider
getOrCreateServiceUser, getServiceUserId
-
Methods inherited from class org.nuxeo.ecm.platform.oauth2.providers.NuxeoOAuth2ServiceProvider
getAuthorizationCode, getAuthorizationCodeFlow, getAuthorizationServerURL, getAuthorizationUrl, getAuthorizationUrl, getCallbackUrl, getCallbackUrl, getClientId, getClientSecret, getCredentialDataStore, getDescription, getError, getId, getScopes, getServiceName, getServiceUserStore, getTokenServerURL, getUserAuthorizationURL, handleAuthorizationCallback, isEnabled, isProviderAvailable, loadCredential, setAuthorizationServerURL, setClientId, setClientSecret, setDescription, setEnabled, setId, setScopes, setServiceName, setTokenServerURL, setUserAuthorizationURL
-
-
-
-
Method Detail
-
getUserEmail
protected String getUserEmail(String accessToken) throws IOException
- Specified by:
getUserEmail
in classAbstractOAuth2UserEmailProvider
- Throws:
IOException
-
getRequestFactory
protected com.google.api.client.http.HttpRequestFactory getRequestFactory()
-
-