public final class GoogleClientSecrets
extends com.google.api.client.json.GenericJson
Sample usage:
static GoogleClientSecrets loadClientSecretsResource(JsonFactory jsonFactory) throws IOException { return GoogleClientSecrets.load( jsonFactory, new InputStreamReader( SampleClass.class.getResourceAsStream("/client_secrets.json"), "UTF-8")); }
Modifier and Type | Class and Description |
---|---|
static class |
GoogleClientSecrets.Details
Client credential details.
|
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
GoogleClientSecrets() |
Modifier and Type | Method and Description |
---|---|
GoogleClientSecrets |
clone() |
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,
Reader reader)
Loads the
client_secrets.json file from the given reader. |
GoogleClientSecrets |
set(String fieldName,
Object value) |
GoogleClientSecrets |
setInstalled(GoogleClientSecrets.Details installed)
Sets the details for installed applications.
|
GoogleClientSecrets |
setWeb(GoogleClientSecrets.Details web)
Sets the details for web applications.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public GoogleClientSecrets.Details getInstalled()
public GoogleClientSecrets setInstalled(GoogleClientSecrets.Details installed)
public GoogleClientSecrets.Details getWeb()
public GoogleClientSecrets setWeb(GoogleClientSecrets.Details web)
public GoogleClientSecrets.Details getDetails()
public GoogleClientSecrets set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public GoogleClientSecrets clone()
clone
in class com.google.api.client.json.GenericJson
public static GoogleClientSecrets load(com.google.api.client.json.JsonFactory jsonFactory, Reader reader) throws IOException
client_secrets.json
file from the given reader.IOException
Copyright © 2010–2019 Google. All rights reserved.