123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- .class public final Lokhttp3/CertificatePinner$Builder;
- .super Ljava/lang/Object;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingClass;
- value = Lokhttp3/CertificatePinner;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x19
- name = "Builder"
- .end annotation
- # instance fields
- .field private final pins:Ljava/util/List;
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Ljava/util/List<",
- "Lokhttp3/CertificatePinner$Pin;",
- ">;"
- }
- .end annotation
- .end field
- # direct methods
- .method public constructor <init>()V
- .locals 1
- invoke-direct {p0}, Ljava/lang/Object;-><init>()V
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- iput-object v0, p0, Lokhttp3/CertificatePinner$Builder;->pins:Ljava/util/List;
- return-void
- .end method
- # virtual methods
- .method public varargs add(Ljava/lang/String;[Ljava/lang/String;)Lokhttp3/CertificatePinner$Builder;
- .locals 5
- if-eqz p1, :cond_1
- array-length v0, p2
- const/4 v1, 0x0
- :goto_0
- if-ge v1, v0, :cond_0
- aget-object v2, p2, v1
- iget-object v3, p0, Lokhttp3/CertificatePinner$Builder;->pins:Ljava/util/List;
- new-instance v4, Lokhttp3/CertificatePinner$Pin;
- invoke-direct {v4, p1, v2}, Lokhttp3/CertificatePinner$Pin;-><init>(Ljava/lang/String;Ljava/lang/String;)V
- invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- add-int/lit8 v1, v1, 0x1
- goto :goto_0
- :cond_0
- return-object p0
- :cond_1
- new-instance p1, Ljava/lang/NullPointerException;
- const-string p2, "pattern == null"
- invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
- goto :goto_2
- :goto_1
- throw p1
- :goto_2
- goto :goto_1
- .end method
- .method public build()Lokhttp3/CertificatePinner;
- .locals 3
- new-instance v0, Lokhttp3/CertificatePinner;
- new-instance v1, Ljava/util/LinkedHashSet;
- iget-object v2, p0, Lokhttp3/CertificatePinner$Builder;->pins:Ljava/util/List;
- invoke-direct {v1, v2}, Ljava/util/LinkedHashSet;-><init>(Ljava/util/Collection;)V
- const/4 v2, 0x0
- invoke-direct {v0, v1, v2}, Lokhttp3/CertificatePinner;-><init>(Ljava/util/Set;Lokhttp3/internal/tls/CertificateChainCleaner;)V
- return-object v0
- .end method
|