public class Credentials extends Object
| Constructor and Description |
|---|
Credentials() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.api.client.auth.oauth2.Credential |
getCredential(GcpOptions options)
Initializes OAuth2 credentials.
|
public static com.google.api.client.auth.oauth2.Credential getCredential(GcpOptions options) throws IOException, GeneralSecurityException
This can use 3 different mechanisms for obtaining a credential:
IOExceptionGeneralSecurityException