be$1.smali
.class Lcom/amap/api/services/a/be$1;
.super Ljava/lang/Object;
# interfaces
.implements Ljavax/net/ssl/HostnameVerifier;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amap/api/services/a/be;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/amap/api/services/a/be;
# direct methods
.method constructor <init>(Lcom/amap/api/services/a/be;)V
.registers 2
iput-object p1, p0, Lcom/amap/api/services/a/be$1;->a:Lcom/amap/api/services/a/be;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
.registers 5
invoke-static {}, Ljavax/net/ssl/HttpsURLConnection;->getDefaultHostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
move-result-object v0
const-string/jumbo v1, "*.amap.com"
invoke-interface {v0, v1, p2}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
move-result v1
if-nez v1, :cond_16
const-string/jumbo v1, "*.apilocate.amap.com"
invoke-interface {v0, v1, p2}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
move-result v0
if-eqz v0, :cond_18
:cond_16
const/4 v0, 0x1
:goto_17
return v0
:cond_18
const/4 v0, 0x0
goto :goto_17
.end method