2022-06-10 21:38:30 +09:00

98 lines
2.4 KiB
Smali

.class public Lvf/g$b;
.super Ljava/lang/Object;
.source "SSLContextBuilder.java"
# interfaces
.implements Ljavax/net/ssl/X509TrustManager;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lvf/g;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "b"
.end annotation
# instance fields
.field public final a:Ljavax/net/ssl/X509TrustManager;
.field public final b:Lvf/l;
# direct methods
.method public constructor <init>(Ljavax/net/ssl/X509TrustManager;Lvf/l;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lvf/g$b;->a:Ljavax/net/ssl/X509TrustManager;
.line 3
iput-object p2, p0, Lvf/g$b;->b:Lvf/l;
return-void
.end method
# virtual methods
.method public checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/security/cert/CertificateException;
}
.end annotation
.line 1
iget-object v0, p0, Lvf/g$b;->a:Ljavax/net/ssl/X509TrustManager;
invoke-interface {v0, p1, p2}, Ljavax/net/ssl/X509TrustManager;->checkClientTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
return-void
.end method
.method public checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/security/cert/CertificateException;
}
.end annotation
.line 1
iget-object v0, p0, Lvf/g$b;->b:Lvf/l;
invoke-interface {v0, p1, p2}, Lvf/l;->a([Ljava/security/cert/X509Certificate;Ljava/lang/String;)Z
move-result v0
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lvf/g$b;->a:Ljavax/net/ssl/X509TrustManager;
invoke-interface {v0, p1, p2}, Ljavax/net/ssl/X509TrustManager;->checkServerTrusted([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V
:cond_0
return-void
.end method
.method public getAcceptedIssuers()[Ljava/security/cert/X509Certificate;
.locals 1
.line 1
iget-object v0, p0, Lvf/g$b;->a:Ljavax/net/ssl/X509TrustManager;
invoke-interface {v0}, Ljavax/net/ssl/X509TrustManager;->getAcceptedIssuers()[Ljava/security/cert/X509Certificate;
move-result-object v0
return-object v0
.end method