> +
> +import com.google.common.base.Supplier;
> +import com.google.gson.JsonObject;
> +import com.google.gson.JsonParser;
> +
> +/*
> + * Provides an easy way to pass in credentials using the json-key format.
> + * Just provide the path to the .json file and this extracts and sets
> identity
> + * and credentials from the json.
> + */
> +public class GoogleCredentialsFromJson implements Supplier<Credentials>{
> +
> + private String jsonKeyString;
> +
> + public GoogleCredentialsFromJson(String jsonString){
> + jsonKeyString = jsonString;
[minor] Prevent a null string from being passed here.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/124/files#r23833301