Class NullCredentialInitializer

java.lang.Object
org.apache.beam.sdk.extensions.gcp.auth.NullCredentialInitializer
All Implemented Interfaces:
com.google.api.client.http.HttpRequestInitializer

public class NullCredentialInitializer extends Object implements com.google.api.client.http.HttpRequestInitializer
A HttpRequestInitializer for requests that don't have credentials.

When the access is denied, it throws IOException with a detailed error message.

  • Constructor Details

    • NullCredentialInitializer

      public NullCredentialInitializer()
  • Method Details

    • initialize

      public void initialize(com.google.api.client.http.HttpRequest httpRequest) throws IOException
      Specified by:
      initialize in interface com.google.api.client.http.HttpRequestInitializer
      Throws:
      IOException
    • throwNullCredentialException

      public static void throwNullCredentialException()