/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.transport.tls;

import com.l7tech.server.transport.tls.SsgConnectorSslHelper;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;

class e
extends SSLSocketFactory {
    final SSLSocketFactory val$ssf;
    final SsgConnectorSslHelper this$0;

    e(SsgConnectorSslHelper ssgConnectorSslHelper, SSLSocketFactory sSLSocketFactory) {
        this.this$0 = ssgConnectorSslHelper;
        this.val$ssf = sSLSocketFactory;
    }

    @Override
    public String[] getDefaultCipherSuites() {
        return this.this$0.h;
    }

    @Override
    public String[] getSupportedCipherSuites() {
        return this.this$0.h;
    }

    @Override
    public Socket createSocket(Socket socket, String string, int n2, boolean bl2) throws IOException {
        SSLSocket sSLSocket = (SSLSocket)this.val$ssf.createSocket(socket, string, n2, bl2);
        this.this$0.configureSocket(sSLSocket);
        return sSLSocket;
    }

    @Override
    public Socket createSocket(String string, int n2) throws IOException {
        SSLSocket sSLSocket = (SSLSocket)this.val$ssf.createSocket(string, n2);
        this.this$0.configureSocket(sSLSocket);
        return sSLSocket;
    }

    @Override
    public Socket createSocket(String string, int n2, InetAddress inetAddress, int n3) throws IOException {
        SSLSocket sSLSocket = (SSLSocket)this.val$ssf.createSocket(string, n2, inetAddress, n3);
        this.this$0.configureSocket(sSLSocket);
        return sSLSocket;
    }

    @Override
    public Socket createSocket(InetAddress inetAddress, int n2) throws IOException {
        SSLSocket sSLSocket = (SSLSocket)this.val$ssf.createSocket(inetAddress, n2);
        this.this$0.configureSocket(sSLSocket);
        return sSLSocket;
    }

    @Override
    public Socket createSocket(InetAddress inetAddress, int n2, InetAddress inetAddress2, int n3) throws IOException {
        SSLSocket sSLSocket = (SSLSocket)this.val$ssf.createSocket(inetAddress, n2, inetAddress2, n3);
        this.this$0.configureSocket(sSLSocket);
        return sSLSocket;
    }
}

