正在查看: Housing v14.7.8 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 a.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package tp;
import java.net.InetAddress;
import java.net.Socket;
import java.security.KeyStore;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;
import javax.net.ssl.TrustManagerFactory;
import javax.net.ssl.X509TrustManager;
import jp.c;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import org.jetbrains.annotations.NotNull;
import org.jivesoftware.smack.util.TLSUtils;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003R\u0014\u0010\u0004\u001a\u00020\u00018\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Ltp/a;", "Ljavax/net/ssl/SSLSocketFactory;", "<init>", "()V", "delegate", "Ljavax/net/ssl/SSLSocketFactory;", "core_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
public final class a extends SSLSocketFactory {
@NotNull
private final SSLSocketFactory delegate;
public a() {
try {
SSLContext sSLContext = SSLContext.getInstance(TLSUtils.TLS);
sSLContext.init(null, b(), null);
SSLSocketFactory socketFactory = sSLContext.getSocketFactory();
r.j(socketFactory, "getInstance(\"TLS\").apply… }.socketFactory");
this.delegate = socketFactory;
} catch (NoSuchAlgorithmException e) {
throw new c("TLS not supported on this device.", e);
}
}
public static void a(Socket socket) {
SSLSocket sSLSocket = socket instanceof SSLSocket ? (SSLSocket) socket : null;
if (sSLSocket == null) {
return;
}
sSLSocket.setEnabledProtocols(new String[]{TLSUtils.PROTO_TLSV1_2});
}
public static TrustManager[] b() {
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustManagerFactory.init((KeyStore) null);
TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
if (trustManagers.length == 1 && (trustManagers[0] instanceof X509TrustManager)) {
return trustManagers;
}
String arrays = Arrays.toString(trustManagers);
r.j(arrays, "toString(this)");
throw new c("Unexpected default trust managers: ".concat(arrays));
}
@Override
public final Socket createSocket(Socket socket, String str, int i, boolean z) {
Socket createSocket = this.delegate.createSocket(socket, str, i, z);
a(createSocket);
return createSocket;
}
@Override
public final String[] getDefaultCipherSuites() {
String[] defaultCipherSuites = this.delegate.getDefaultCipherSuites();
r.j(defaultCipherSuites, "delegate.defaultCipherSuites");
return defaultCipherSuites;
}
@Override
public final String[] getSupportedCipherSuites() {
String[] supportedCipherSuites = this.delegate.getSupportedCipherSuites();
r.j(supportedCipherSuites, "delegate.supportedCipherSuites");
return supportedCipherSuites;
}
@Override
public final Socket createSocket(String str, int i) {
Socket createSocket = this.delegate.createSocket(str, i);
a(createSocket);
return createSocket;
}
@Override
public final Socket createSocket(String str, int i, InetAddress inetAddress, int i2) {
Socket createSocket = this.delegate.createSocket(str, i, inetAddress, i2);
a(createSocket);
return createSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i) {
Socket createSocket = this.delegate.createSocket(inetAddress, i);
a(createSocket);
return createSocket;
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) {
Socket createSocket = this.delegate.createSocket(inetAddress, i, inetAddress2, i2);
a(createSocket);
return createSocket;
}
@Override
public final Socket createSocket() {
Socket createSocket = this.delegate.createSocket();
a(createSocket);
return createSocket;
}
}