static SSLEngine initEngine(SSLEngine engine, String cipher, boolean client) {
        engine.setEnabledProtocols(new String[]{OpenJdkEngineFactoryConfig.PROTOCOL});
        engine.setEnabledCipherSuites(new String[] {cipher});
        engine.setUseClientMode(client);
        return engine;
    }
Enumeration of various types of engines for use with engine-based benchmarks.
benchmark-jmh/src/jmh/java/org/conscrypt/OpenJdkEngineFactory.java