public final class GoogleClientSecrets
extends com.google.api.client.json.GenericJson
Sample usage:
static GoogleClientSecrets loadClientSecretsResource(JsonFactory jsonFactory) throws IOException {
return GoogleClientSecrets.load(
jsonFactory, SampleClass.class.getResourceAsStream("/client_secrets.json"));
}
| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleClientSecrets.Details
Client credential details.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleClientSecrets() |
| Modifier and Type | Method and Description |
|---|---|
GoogleClientSecrets.Details |
getDetails()
Returns the details for either installed or web applications.
|
GoogleClientSecrets.Details |
getInstalled()
Returns the details for installed applications.
|
GoogleClientSecrets.Details |
getWeb()
Returns the details for web applications.
|
static GoogleClientSecrets |
load(com.google.api.client.json.JsonFactory jsonFactory,
InputStream inputStream)
Loads the
client_secrets.json file from the given input stream. |
GoogleClientSecrets |
setInstalled(GoogleClientSecrets.Details installed)
Sets the details for installed applications.
|
GoogleClientSecrets |
setWeb(GoogleClientSecrets.Details web)
Sets the details for web applications.
|
clone, getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic GoogleClientSecrets.Details getInstalled()
public GoogleClientSecrets setInstalled(GoogleClientSecrets.Details installed)
public GoogleClientSecrets.Details getWeb()
public GoogleClientSecrets setWeb(GoogleClientSecrets.Details web)
public GoogleClientSecrets.Details getDetails()
public static GoogleClientSecrets load(com.google.api.client.json.JsonFactory jsonFactory, InputStream inputStream) throws IOException
client_secrets.json file from the given input stream.IOExceptionCopyright © 2010-2013 Google. All Rights Reserved.