This page should mention ProgrammaticSslEngineFactory, it's the easiest way to create an instance if you have a context and a list of cipher suites.