public class NullCredentialInitializer extends java.lang.Object implements HttpRequestInitializer
HttpRequestInitializer
for requests that don't have credentials.
When the access is denied, it throws IOException
with a detailed error message.
Constructor and Description |
---|
NullCredentialInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(HttpRequest httpRequest) |
static void |
throwNullCredentialException() |
public void initialize(HttpRequest httpRequest) throws java.io.IOException
initialize
in interface HttpRequestInitializer
java.io.IOException
public static void throwNullCredentialException()