Class ServiceAccountCredentialFactory
- java.lang.Object
-
- org.nuxeo.ecm.liveconnect.google.drive.credential.ServiceAccountCredentialFactory
-
- All Implemented Interfaces:
CredentialFactory
public class ServiceAccountCredentialFactory extends Object implements CredentialFactory
Credential factory for Service Accounts.- Since:
- 7.3
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountCredentialFactory(String accountId, File p12File)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.client.auth.oauth2.Credential
build(String user)
protected static com.google.api.client.http.HttpTransport
getHttpTransport()
protected static com.google.api.client.json.JsonFactory
getJsonFactory()
-
-
-
Method Detail
-
build
public com.google.api.client.auth.oauth2.Credential build(String user) throws IOException
- Specified by:
build
in interfaceCredentialFactory
- Throws:
IOException
-
getJsonFactory
protected static com.google.api.client.json.JsonFactory getJsonFactory()
-
getHttpTransport
protected static com.google.api.client.http.HttpTransport getHttpTransport() throws IOException
- Throws:
IOException
-
-