title: How can I get access to Google Cloud Storage using an access and a secret key
body: <p>I have access and a secret key to Google Cloud Storage and I want to instantiate a client using those credentials. I've been looking at tutorials and came across this example:</p>
  
  <pre><code>public class QuickstartSample {
  public static void main(String... args) throws Exception {
  // Instantiates a client
  Storage storage = StorageOptions.getDefaultInstance().getService();
  /* Perform some bucket action */
   }
  }
  </code></pre>
  
  <p>Is there any way I could pass that <code>access</code> and <code>secret</code> key while instantiating a client, in a fashion similar to that of <code>AWS</code> and <code>Minio</code>, something like this:</p>
  
  <pre><code>minioClient = new MinioClient("server URL", "accessKey",
        "secretKey");
  </code></pre>
  
  <p>I'd really appreciate some help with this.</p>