正在查看: Mitra Bukalapak v2.55.0 应用的 va0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 va0.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package bo.app;
import com.braze.support.BrazeLogger;
import defpackage.p64;
import java.net.InetAddress;
import java.net.Socket;
import java.util.ArrayList;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
public final class va0 extends SSLSocketFactory {
public final SSLSocketFactory a;
public va0() {
SSLContext sSLContext = SSLContext.getInstance("TLS");
sSLContext.init(null, null, null);
SSLSocketFactory socketFactory = sSLContext.getSocketFactory();
p64.g(socketFactory, "sslContext.socketFactory");
this.a = socketFactory;
}
public final Socket a(Socket socket) {
if (socket instanceof SSLSocket) {
ArrayList arrayList = new ArrayList();
SSLSocket sSLSocket = (SSLSocket) socket;
String[] supportedProtocols = sSLSocket.getSupportedProtocols();
p64.g(supportedProtocols, "socket.supportedProtocols");
for (String str : supportedProtocols) {
if (!p64.c(str, "SSLv3")) {
p64.g(str, "protocol");
arrayList.add(str);
}
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.V, (Throwable) null, new ua0(arrayList), 2, (Object) null);
sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[0]));
}
return socket;
}
@Override
public final Socket createSocket() {
Socket createSocket = this.a.createSocket();
p64.g(createSocket, "internalSSLSocketFactory.createSocket()");
return a(createSocket);
}
@Override
public final String[] getDefaultCipherSuites() {
String[] defaultCipherSuites = this.a.getDefaultCipherSuites();
p64.g(defaultCipherSuites, "internalSSLSocketFactory.defaultCipherSuites");
return defaultCipherSuites;
}
@Override
public final String[] getSupportedCipherSuites() {
String[] supportedCipherSuites = this.a.getSupportedCipherSuites();
p64.g(supportedCipherSuites, "internalSSLSocketFactory.supportedCipherSuites");
return supportedCipherSuites;
}
@Override
public final Socket createSocket(String str, int i) {
p64.h(str, "host");
Socket createSocket = this.a.createSocket(str, i);
p64.g(createSocket, "internalSSLSocketFactory.createSocket(host, port)");
return a(createSocket);
}
@Override
public final Socket createSocket(String str, int i, InetAddress inetAddress, int i2) {
p64.h(str, "host");
p64.h(inetAddress, "localHost");
Socket createSocket = this.a.createSocket(str, i, inetAddress, i2);
p64.g(createSocket, "internalSSLSocketFactory…rt, localHost, localPort)");
return a(createSocket);
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i) {
p64.h(inetAddress, "host");
Socket createSocket = this.a.createSocket(inetAddress, i);
p64.g(createSocket, "internalSSLSocketFactory.createSocket(host, port)");
return a(createSocket);
}
@Override
public final Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) {
p64.h(inetAddress, "address");
p64.h(inetAddress2, "localAddress");
Socket createSocket = this.a.createSocket(inetAddress, i, inetAddress2, i2);
p64.g(createSocket, "internalSSLSocketFactory… localAddress, localPort)");
return a(createSocket);
}
@Override
public final Socket createSocket(Socket socket, String str, int i, boolean z) {
p64.h(socket, "socket");
p64.h(str, "host");
Socket createSocket = this.a.createSocket(socket, str, i, z);
p64.g(createSocket, "internalSSLSocketFactory…t, host, port, autoClose)");
return a(createSocket);
}
}