APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Mi Prepago
版本号:1.1.29
包名称:com.correos.prepago

MD5 校验值:8df004f6dd2453bdf1d8ecd51cca1137

反编译源代码说明

z5.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package bo.app;

import com.braze.support.BrazeLogger;
import java.net.InetAddress;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;

public final class z5 extends SSLSocketFactory {

    public static final a f10130b = new a(null);

    private SSLSocketFactory f10131a;

    public static final class a {
        public a(kotlin.jvm.internal.h hVar) {
            this();
        }

        private a() {
        }
    }

    public static final class b extends kotlin.jvm.internal.q implements kg.a {

        final List f10132b;

        b(List list) {
            super(0);
            this.f10132b = list;
        }

        @Override
        public final String invoke() {
            return "Enabling SSL protocols: " + this.f10132b;
        }
    }

    public z5() {
        SSLContext sSLContext = SSLContext.getInstance("TLS");
        sSLContext.init(null, null, null);
        SSLSocketFactory socketFactory = sSLContext.getSocketFactory();
        kotlin.jvm.internal.p.f(socketFactory, "sslContext.socketFactory");
        this.f10131a = socketFactory;
    }

    private final Socket a(Socket socket) {
        if (socket instanceof SSLSocket) {
            ArrayList arrayList = new ArrayList();
            SSLSocket sSLSocket = (SSLSocket) socket;
            String[] supportedProtocols = sSLSocket.getSupportedProtocols();
            kotlin.jvm.internal.p.f(supportedProtocols, "socket.supportedProtocols");
            for (String protocol : supportedProtocols) {
                if (!kotlin.jvm.internal.p.b(protocol, "SSLv3")) {
                    kotlin.jvm.internal.p.f(protocol, "protocol");
                    arrayList.add(protocol);
                }
            }
            BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.V, (Throwable) null, new b(arrayList), 2, (Object) null);
            sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[0]));
        }
        return socket;
    }

    @Override
    public Socket createSocket() {
        Socket createSocket = this.f10131a.createSocket();
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory.createSocket()");
        return a(createSocket);
    }

    @Override
    public String[] getDefaultCipherSuites() {
        String[] defaultCipherSuites = this.f10131a.getDefaultCipherSuites();
        kotlin.jvm.internal.p.f(defaultCipherSuites, "internalSSLSocketFactory.defaultCipherSuites");
        return defaultCipherSuites;
    }

    @Override
    public String[] getSupportedCipherSuites() {
        String[] supportedCipherSuites = this.f10131a.getSupportedCipherSuites();
        kotlin.jvm.internal.p.f(supportedCipherSuites, "internalSSLSocketFactory.supportedCipherSuites");
        return supportedCipherSuites;
    }

    @Override
    public Socket createSocket(Socket socket, String host, int i10, boolean z10) {
        kotlin.jvm.internal.p.g(socket, "socket");
        kotlin.jvm.internal.p.g(host, "host");
        Socket createSocket = this.f10131a.createSocket(socket, host, i10, z10);
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory…t, host, port, autoClose)");
        return a(createSocket);
    }

    @Override
    public Socket createSocket(String host, int i10) {
        kotlin.jvm.internal.p.g(host, "host");
        Socket createSocket = this.f10131a.createSocket(host, i10);
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory.createSocket(host, port)");
        return a(createSocket);
    }

    @Override
    public Socket createSocket(String host, int i10, InetAddress localHost, int i11) {
        kotlin.jvm.internal.p.g(host, "host");
        kotlin.jvm.internal.p.g(localHost, "localHost");
        Socket createSocket = this.f10131a.createSocket(host, i10, localHost, i11);
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory…rt, localHost, localPort)");
        return a(createSocket);
    }

    @Override
    public Socket createSocket(InetAddress host, int i10) {
        kotlin.jvm.internal.p.g(host, "host");
        Socket createSocket = this.f10131a.createSocket(host, i10);
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory.createSocket(host, port)");
        return a(createSocket);
    }

    @Override
    public Socket createSocket(InetAddress address, int i10, InetAddress localAddress, int i11) {
        kotlin.jvm.internal.p.g(address, "address");
        kotlin.jvm.internal.p.g(localAddress, "localAddress");
        Socket createSocket = this.f10131a.createSocket(address, i10, localAddress, i11);
        kotlin.jvm.internal.p.f(createSocket, "internalSSLSocketFactory… localAddress, localPort)");
        return a(createSocket);
    }
}