CertificateChainCleaner.smali 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .class public abstract Lokhttp3/internal/tls/CertificateChainCleaner;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # direct methods
  5. .method public constructor <init>()V
  6. .locals 0
  7. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  8. return-void
  9. .end method
  10. .method public static get(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
  11. .locals 1
  12. invoke-static {}, Lokhttp3/internal/platform/Platform;->get()Lokhttp3/internal/platform/Platform;
  13. move-result-object v0
  14. invoke-virtual {v0, p0}, Lokhttp3/internal/platform/Platform;->buildCertificateChainCleaner(Ljavax/net/ssl/X509TrustManager;)Lokhttp3/internal/tls/CertificateChainCleaner;
  15. move-result-object p0
  16. return-object p0
  17. .end method
  18. .method public static varargs get([Ljava/security/cert/X509Certificate;)Lokhttp3/internal/tls/CertificateChainCleaner;
  19. .locals 2
  20. new-instance v0, Lokhttp3/internal/tls/BasicCertificateChainCleaner;
  21. new-instance v1, Lokhttp3/internal/tls/BasicTrustRootIndex;
  22. invoke-direct {v1, p0}, Lokhttp3/internal/tls/BasicTrustRootIndex;-><init>([Ljava/security/cert/X509Certificate;)V
  23. invoke-direct {v0, v1}, Lokhttp3/internal/tls/BasicCertificateChainCleaner;-><init>(Lokhttp3/internal/tls/TrustRootIndex;)V
  24. return-object v0
  25. .end method
  26. # virtual methods
  27. .method public abstract clean(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;
  28. .annotation system Ldalvik/annotation/Signature;
  29. value = {
  30. "(",
  31. "Ljava/util/List<",
  32. "Ljava/security/cert/Certificate;",
  33. ">;",
  34. "Ljava/lang/String;",
  35. ")",
  36. "Ljava/util/List<",
  37. "Ljava/security/cert/Certificate;",
  38. ">;"
  39. }
  40. .end annotation
  41. .annotation system Ldalvik/annotation/Throws;
  42. value = {
  43. Ljavax/net/ssl/SSLPeerUnverifiedException;
  44. }
  45. .end annotation
  46. .end method