package o; import android.content.Context; import android.os.AsyncTask; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLException; import javax.net.ssl.SSLSession; /* loaded from: classes2.dex */ public final class wgU implements HostnameVerifier { @Override // javax.net.ssl.HostnameVerifier public final boolean verify(String str, SSLSession sSLSession) { Context context; try { X509Certificate x509Certificate = (X509Certificate) sSLSession.getPeerCertificates()[0]; x509Certificate.getSubjectDN().getName(); AuP.b(str, x509Certificate); if (!AsyncTaskC17148uMC.a && (context = gHQ.e) != null) { AsyncTaskC17148uMC.a = true; long c = WSZ.c("lastCheckTime", context); long currentTimeMillis = System.currentTimeMillis(); if (currentTimeMillis - c > 432000000) { WSZ.b("lastCheckTime", currentTimeMillis, context); new AsyncTaskC17148uMC().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, gHQ.e); } } return true; } catch (SSLException e) { e.getMessage(); return false; } } }