123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- .class final Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;
- .super Lokhttp3/internal/tls/CertificateChainCleaner;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/internal/platform/AndroidPlatform;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x18
- name = "AndroidCertificateChainCleaner"
- .end annotation
- # instance fields
- .field private final checkServerTrusted:Ljava/lang/reflect/Method;
- .field private final x509TrustManagerExtensions:Ljava/lang/Object;
- # direct methods
- .method constructor <init>(Ljava/lang/Object;Ljava/lang/reflect/Method;)V
- .locals 0
- invoke-direct {p0}, Lokhttp3/internal/tls/CertificateChainCleaner;-><init>()V
- iput-object p1, p0, Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;->x509TrustManagerExtensions:Ljava/lang/Object;
- iput-object p2, p0, Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;->checkServerTrusted:Ljava/lang/reflect/Method;
- return-void
- .end method
- # virtual methods
- .method public clean(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;
- .locals 4
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "(",
- "Ljava/util/List<",
- "Ljava/security/cert/Certificate;",
- ">;",
- "Ljava/lang/String;",
- ")",
- "Ljava/util/List<",
- "Ljava/security/cert/Certificate;",
- ">;"
- }
- .end annotation
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljavax/net/ssl/SSLPeerUnverifiedException;
- }
- .end annotation
- :try_start_0
- invoke-interface {p1}, Ljava/util/List;->size()I
- move-result v0
- new-array v0, v0, [Ljava/security/cert/X509Certificate;
- invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
- move-result-object p1
- check-cast p1, [Ljava/security/cert/X509Certificate;
- iget-object v0, p0, Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;->checkServerTrusted:Ljava/lang/reflect/Method;
- iget-object v1, p0, Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;->x509TrustManagerExtensions:Ljava/lang/Object;
- const/4 v2, 0x3
- new-array v2, v2, [Ljava/lang/Object;
- const/4 v3, 0x0
- aput-object p1, v2, v3
- const/4 p1, 0x1
- const-string v3, "RSA"
- aput-object v3, v2, p1
- const/4 p1, 0x2
- aput-object p2, v2, p1
- invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
- move-result-object p1
- check-cast p1, Ljava/util/List;
- :try_end_0
- .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_1
- .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0
- return-object p1
- :catch_0
- move-exception p1
- new-instance p2, Ljava/lang/AssertionError;
- invoke-direct {p2, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
- throw p2
- :catch_1
- move-exception p1
- new-instance p2, Ljavax/net/ssl/SSLPeerUnverifiedException;
- invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getMessage()Ljava/lang/String;
- move-result-object v0
- invoke-direct {p2, v0}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
- invoke-virtual {p2, p1}, Ljavax/net/ssl/SSLPeerUnverifiedException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
- throw p2
- .end method
- .method public equals(Ljava/lang/Object;)Z
- .locals 0
- instance-of p1, p1, Lokhttp3/internal/platform/AndroidPlatform$AndroidCertificateChainCleaner;
- return p1
- .end method
- .method public hashCode()I
- .locals 1
- const/4 v0, 0x0
- return v0
- .end method
|