导航菜单

页面标题

页面副标题

OVO v3.139.0 - gff.java 源代码

正在查看: OVO v3.139.0 应用的 gff.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package o.i;

import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Arrays;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import okhttp3.TlsVersion;

public final class gff extends SSLSocketFactory {
    private final SSLSocketFactory delegate;

    public gff(SSLSocketFactory sSLSocketFactory) {
        this.delegate = sSLSocketFactory;
    }

    public static Socket a(Socket socket) {
        SSLSocket sSLSocket = socket instanceof SSLSocket ? (SSLSocket) socket : null;
        if (sSLSocket == null) {
            return socket;
        }
        String[] enabledProtocols = sSLSocket.getEnabledProtocols();
        vk7.e(enabledProtocols, "enabledProtocols");
        String javaName = TlsVersion.TLS_1_2.javaName();
        int length = enabledProtocols.length;
        Object[] copyOf = Arrays.copyOf(enabledProtocols, length + 1);
        copyOf[length] = javaName;
        sSLSocket.setEnabledProtocols((String[]) copyOf);
        return sSLSocket;
    }

    @Override
    public final Socket createSocket(Socket socket, String str, int i, boolean z) throws IOException {
        vk7.f(socket, "s");
        vk7.f(str, "host");
        Socket createSocket = this.delegate.createSocket(socket, str, i, z);
        vk7.e(createSocket, "delegate.createSocket(s, host, port, autoClose)");
        return a(createSocket);
    }

    @Override
    public final String[] getDefaultCipherSuites() {
        String[] defaultCipherSuites = this.delegate.getDefaultCipherSuites();
        vk7.e(defaultCipherSuites, "delegate.defaultCipherSuites");
        return defaultCipherSuites;
    }

    @Override
    public final String[] getSupportedCipherSuites() {
        String[] supportedCipherSuites = this.delegate.getSupportedCipherSuites();
        vk7.e(supportedCipherSuites, "delegate.supportedCipherSuites");
        return supportedCipherSuites;
    }

    @Override
    public final Socket createSocket(String str, int i) throws IOException, UnknownHostException {
        vk7.f(str, "host");
        Socket createSocket = this.delegate.createSocket(str, i);
        vk7.e(createSocket, "delegate.createSocket(host, port)");
        return a(createSocket);
    }

    @Override
    public final Socket createSocket(String str, int i, InetAddress inetAddress, int i2) throws IOException, UnknownHostException {
        vk7.f(str, "host");
        vk7.f(inetAddress, "localHost");
        Socket createSocket = this.delegate.createSocket(str, i, inetAddress, i2);
        vk7.e(createSocket, "delegate.createSocket(ho…rt, localHost, localPort)");
        return a(createSocket);
    }

    @Override
    public final Socket createSocket(InetAddress inetAddress, int i) throws IOException {
        vk7.f(inetAddress, "host");
        Socket createSocket = this.delegate.createSocket(inetAddress, i);
        vk7.e(createSocket, "delegate.createSocket(host, port)");
        return a(createSocket);
    }

    @Override
    public final Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress2, int i2) throws IOException {
        vk7.f(inetAddress, "address");
        vk7.f(inetAddress2, "localAddress");
        Socket createSocket = this.delegate.createSocket(inetAddress, i, inetAddress2, i2);
        vk7.e(createSocket, "delegate.createSocket(ad… localAddress, localPort)");
        return a(createSocket);
    }
}