Class BasicAuthentication

java.lang.Object
com.google.api.client.http.BasicAuthentication
All Implemented Interfaces:
HttpExecuteInterceptor, HttpRequestInitializer

public final class BasicAuthentication extends Object implements HttpRequestInitializer, HttpExecuteInterceptor
Basic authentication HTTP request initializer as specified in Basic Authentication Scheme

Implementation is immutable and thread-safe. It can be used as either an HTTP request initializer or an HTTP request execute interceptor. initialize(HttpRequest) only sets itself as the interceptor. Authentication is actually done in intercept(HttpRequest), which is implemented using HttpHeaders.setBasicAuthentication(String, String).

Since:
1.7