public class ServiceAccountCredentialFactory extends Object implements CredentialFactory
Constructor and Description |
---|
ServiceAccountCredentialFactory(String accountId,
File p12File) |
Modifier and Type | Method and 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() |
public ServiceAccountCredentialFactory(String accountId, File p12File)
public com.google.api.client.auth.oauth2.Credential build(String user) throws IOException
build
in interface CredentialFactory
IOException
protected static com.google.api.client.json.JsonFactory getJsonFactory()
protected static com.google.api.client.http.HttpTransport getHttpTransport() throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.