170 lines
3.8 KiB
Smali
170 lines
3.8 KiB
Smali
.class public Lorg/apache/http/auth/AuthState;
|
|
.super Ljava/lang/Object;
|
|
.source "AuthState.java"
|
|
|
|
|
|
# annotations
|
|
.annotation build Lorg/apache/http/annotation/NotThreadSafe;
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private authScheme:Lorg/apache/http/auth/AuthScheme;
|
|
|
|
.field private authScope:Lorg/apache/http/auth/AuthScope;
|
|
|
|
.field private credentials:Lorg/apache/http/auth/Credentials;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getAuthScheme()Lorg/apache/http/auth/AuthScheme;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/apache/http/auth/AuthState;->authScheme:Lorg/apache/http/auth/AuthScheme;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getAuthScope()Lorg/apache/http/auth/AuthScope;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/apache/http/auth/AuthState;->authScope:Lorg/apache/http/auth/AuthScope;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getCredentials()Lorg/apache/http/auth/Credentials;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/apache/http/auth/AuthState;->credentials:Lorg/apache/http/auth/Credentials;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public invalidate()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
iput-object v0, p0, Lorg/apache/http/auth/AuthState;->authScheme:Lorg/apache/http/auth/AuthScheme;
|
|
|
|
.line 2
|
|
iput-object v0, p0, Lorg/apache/http/auth/AuthState;->authScope:Lorg/apache/http/auth/AuthScope;
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lorg/apache/http/auth/AuthState;->credentials:Lorg/apache/http/auth/Credentials;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public isValid()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lorg/apache/http/auth/AuthState;->authScheme:Lorg/apache/http/auth/AuthScheme;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public setAuthScheme(Lorg/apache/http/auth/AuthScheme;)V
|
|
.locals 0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lorg/apache/http/auth/AuthState;->invalidate()V
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iput-object p1, p0, Lorg/apache/http/auth/AuthState;->authScheme:Lorg/apache/http/auth/AuthScheme;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAuthScope(Lorg/apache/http/auth/AuthScope;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lorg/apache/http/auth/AuthState;->authScope:Lorg/apache/http/auth/AuthScope;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCredentials(Lorg/apache/http/auth/Credentials;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lorg/apache/http/auth/AuthState;->credentials:Lorg/apache/http/auth/Credentials;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "auth scope ["
|
|
|
|
.line 1
|
|
invoke-static {v0}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lorg/apache/http/auth/AuthState;->authScope:Lorg/apache/http/auth/AuthScope;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "]; credentials set ["
|
|
|
|
.line 3
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lorg/apache/http/auth/AuthState;->credentials:Lorg/apache/http/auth/Credentials;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "true"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "false"
|
|
|
|
:goto_0
|
|
const-string v2, "]"
|
|
|
|
invoke-static {v0, v1, v2}, Landroidx/camera/camera2/internal/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|