package o;

import java.util.List;
import javax.net.ssl.SSLSocket;
import org.bouncycastle.jsse.BCSSLParameters;
import org.bouncycastle.jsse.BCSSLSocket;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.we, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2824we implements K90 {
    public static final C2729ve a = new C2729ve();

    @Override // o.K90
    public final String a(SSLSocket sSLSocket) {
        String applicationProtocol = ((BCSSLSocket) sSLSocket).getApplicationProtocol();
        if (applicationProtocol == null ? true : applicationProtocol.equals("")) {
            return null;
        }
        return applicationProtocol;
    }

    @Override // o.K90
    public final boolean b(SSLSocket sSLSocket) {
        return false;
    }

    @Override // o.K90
    public final boolean c() {
        boolean z = C2634ue.d;
        return C2634ue.d;
    }

    @Override // o.K90
    public final void d(SSLSocket sSLSocket, String str, List list) {
        if (b(sSLSocket)) {
            BCSSLSocket bCSSLSocket = (BCSSLSocket) sSLSocket;
            BCSSLParameters parameters = bCSSLSocket.getParameters();
            ZW zw = ZW.a;
            parameters.setApplicationProtocols((String[]) C2616uQ.q(list).toArray(new String[0]));
            bCSSLSocket.setParameters(parameters);
        }
    }
}
