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 public final class LegacyJsonKey extends com.google.api.client.json.GenericJson
Deprecated.For "Robot" service account client secrets a key piece of information is the email address contained within "client_secrets.json", which the existingGoogleClientSecrets
class does not parse. This makeshift partial copy ofGoogleClientSecrets
implements *just* the "client_email" parsing.- Author:
- Matt Moore
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LegacyJsonKey.Details
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 Constructor Description LegacyJsonKey()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LegacyJsonKey.Details
getWeb()
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
setWeb(LegacyJsonKey.Details web)
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
-
-
-
-
Method Detail
-
getWeb
public LegacyJsonKey.Details getWeb()
Deprecated.Returns the details for web applications.
-
setWeb
public void setWeb(LegacyJsonKey.Details web)
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
-
-