/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.common.io.SSLSocketFactoryWrapper
 *  com.l7tech.util.Functions$Nullary
 */
package com.l7tech.server.security.cert;

import com.l7tech.common.io.SSLSocketFactoryWrapper;
import com.l7tech.server.security.cert.z;
import com.l7tech.util.Functions;
import java.security.KeyManagementException;
import java.security.SecureRandom;
import javax.net.ssl.KeyManager;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLContextSpi;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLServerSocketFactory;
import javax.net.ssl.SSLSessionContext;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManager;

class ae
extends SSLContextSpi {
    private final SSLContext a;

    private ae(SSLContext sSLContext) {
        this.a = sSLContext;
    }

    @Override
    protected SSLEngine engineCreateSSLEngine() {
        return this.a.createSSLEngine();
    }

    @Override
    protected SSLEngine engineCreateSSLEngine(String string, int n2) {
        return this.a.createSSLEngine(string, n2);
    }

    @Override
    protected SSLSocketFactory engineGetSocketFactory() {
        return new SSLSocketFactoryWrapper((Functions.Nullary)new z(this));
    }

    @Override
    protected SSLServerSocketFactory engineGetServerSocketFactory() {
        return this.a.getServerSocketFactory();
    }

    @Override
    protected SSLSessionContext engineGetServerSessionContext() {
        return this.a.getServerSessionContext();
    }

    @Override
    protected SSLSessionContext engineGetClientSessionContext() {
        return this.a.getClientSessionContext();
    }

    @Override
    protected void engineInit(KeyManager[] keyManagerArray, TrustManager[] trustManagerArray, SecureRandom secureRandom) throws KeyManagementException {
        this.a.init(keyManagerArray, trustManagerArray, secureRandom);
    }
}

