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.JsonKey
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class JsonKey extends com.google.api.client.json.GenericJson
The Google Developer Console provides private keys for service accounts in two different ways. one of them is a .json file that can be downloaded from the Google Developer Console.

The structure of this json file is: { "private_key":"-----BEGIN PRIVATE KEY-----\n ... \n-----END PRIVATE KEY-----\n", "client_email":"...@developer.gserviceaccount.com", ... }

  • Constructor Details

    • JsonKey

      public JsonKey()
  • Method Details

    • load

      public static JsonKey load(com.google.api.client.json.JsonFactory jsonFactory, InputStream inputStream) throws IOException
      Throws:
      IOException
    • getClientEmail

      public String getClientEmail()
    • setClientEmail

      public void setClientEmail(String clientEmail)
    • getPrivateKey

      public String getPrivateKey()
    • setPrivateKey

      public void setPrivateKey(String privateKey)