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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(com.google.api.client.http.HttpRequest httpRequest) static void
-
Constructor Details
-
NullCredentialInitializer
public NullCredentialInitializer()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacecom.google.api.client.http.HttpRequestInitializer- Throws:
IOException
-
throwNullCredentialException
public static void throwNullCredentialException()
-