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 Details

    • ServiceAccountCredentialFactory

      public ServiceAccountCredentialFactory(String accountId, File p12File)
  • Method Details

    • build

      public com.google.api.client.auth.oauth2.Credential build(String user) throws IOException
      Specified by:
      build in interface CredentialFactory
      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