.class public final Lcom/google/api/client/http/BasicAuthentication; .super Ljava/lang/Object; .source "BasicAuthentication.java" # interfaces .implements Lcom/google/api/client/http/HttpRequestInitializer; .implements Lcom/google/api/client/http/HttpExecuteInterceptor; # instance fields .field private final password:Ljava/lang/String; .field private final username:Ljava/lang/String; # direct methods .method public constructor (Ljava/lang/String;Ljava/lang/String;)V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 invoke-static {p1}, Lcom/google/api/client/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; iput-object p1, p0, Lcom/google/api/client/http/BasicAuthentication;->username:Ljava/lang/String; .line 3 invoke-static {p2}, Lcom/google/api/client/util/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 check-cast p1, Ljava/lang/String; iput-object p1, p0, Lcom/google/api/client/http/BasicAuthentication;->password:Ljava/lang/String; return-void .end method # virtual methods .method public getPassword()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lcom/google/api/client/http/BasicAuthentication;->password:Ljava/lang/String; return-object v0 .end method .method public getUsername()Ljava/lang/String; .locals 1 .line 1 iget-object v0, p0, Lcom/google/api/client/http/BasicAuthentication;->username:Ljava/lang/String; return-object v0 .end method .method public initialize(Lcom/google/api/client/http/HttpRequest;)V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-virtual {p1, p0}, Lcom/google/api/client/http/HttpRequest;->setInterceptor(Lcom/google/api/client/http/HttpExecuteInterceptor;)Lcom/google/api/client/http/HttpRequest; return-void .end method .method public intercept(Lcom/google/api/client/http/HttpRequest;)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-virtual {p1}, Lcom/google/api/client/http/HttpRequest;->getHeaders()Lcom/google/api/client/http/HttpHeaders; move-result-object p1 iget-object v0, p0, Lcom/google/api/client/http/BasicAuthentication;->username:Ljava/lang/String; iget-object v1, p0, Lcom/google/api/client/http/BasicAuthentication;->password:Ljava/lang/String; invoke-virtual {p1, v0, v1}, Lcom/google/api/client/http/HttpHeaders;->setBasicAuthentication(Ljava/lang/String;Ljava/lang/String;)Lcom/google/api/client/http/HttpHeaders; return-void .end method