Package io.camunda.google
Class GoogleAuthUtils
- java.lang.Object
-
- io.camunda.google.GoogleAuthUtils
-
public class GoogleAuthUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.api.client.json.JsonFactoryJSON_FACTORY
-
Constructor Summary
Constructors Constructor Description GoogleAuthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidconfigure(GoogleWsConfig googleWsConfig)static com.google.api.client.auth.oauth2.CredentialgetCredentials(com.google.api.client.http.javanet.NetHttpTransport HTTP_TRANSPORT)Creates an authorized Credential object.static GoogleWsConfiggetGoogleWsConfig()
-
-
-
Method Detail
-
configure
public static void configure(GoogleWsConfig googleWsConfig)
-
getGoogleWsConfig
public static GoogleWsConfig getGoogleWsConfig()
-
getCredentials
public static com.google.api.client.auth.oauth2.Credential getCredentials(com.google.api.client.http.javanet.NetHttpTransport HTTP_TRANSPORT) throws java.io.IOExceptionCreates an authorized Credential object.- Parameters:
HTTP_TRANSPORT- The network HTTP Transport.- Returns:
- An authorized Credential object.
- Throws:
java.io.IOException- If the credentials.json file cannot be found.
-
-