Class LegacyJsonKey
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.jenkins.plugins.credentials.oauth.LegacyJsonKey
Deprecated.
For "Robot" service account client secrets a key piece of information is the email address
contained within "client_secrets.json", which the existing
GoogleClientSecrets
class does
not parse. This makeshift partial copy of GoogleClientSecrets
implements *just* the
"client_email" parsing.- Author:
- Matt Moore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Deprecated.Container for our new field, modeled after:GoogleClientSecrets.Details
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetWeb()
Deprecated.Returns the details for web applications.static LegacyJsonKey
load
(com.google.api.client.json.JsonFactory jsonFactory, InputStream inputStream) Deprecated.Loads theclient_secrets.json
file from the given input stream.void
Deprecated.Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, set, setFactory, toPrettyString, toString
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
LegacyJsonKey
public LegacyJsonKey()Deprecated.
-
-
Method Details
-
getWeb
Deprecated.Returns the details for web applications. -
setWeb
Deprecated. -
load
public static LegacyJsonKey load(com.google.api.client.json.JsonFactory jsonFactory, InputStream inputStream) throws IOException Deprecated.Loads theclient_secrets.json
file from the given input stream.- Throws:
IOException
-