@Override
    public void configureSsl(ConnectorSsl ssl, String name, int port) {
        TlsContext tlsContext = getTlsContext(name, port);
        SSLParameters parameters = tlsContext.parameters();
        ssl.setSslContext(tlsContext.sslContext().context());
        ssl.setEnabledProtocolVersions(List.of(parameters.getProtocols()));
        ssl.setEnabledCipherSuites(List.of(parameters.getCipherSuites()));
        if (parameters.getNeedClientAuth()) {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.NEED);
        } else if (parameters.getWantClientAuth()) {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.WANT);
        } else {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.DISABLED);
        }
    }
A {@link SslProvider} that configures SSL from {@link TlsContext} instances.

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/ssl/impl/TlsContextBasedProvider.java