public class ProgrammaticSslEngineFactory extends Object implements SslEngineFactory
Unlike the configuration-based approach, this class does not allow you to customize cipher
suites, or turn on host name validation. Also, note that it will create SSL engines with advisory
peer information (
SSLContext.createSSLEngine(String, int)) whenever possible.
If those defaults do not work for you, it should be pretty straightforward to write your own implementation by extending or duplicating this class.
|Constructor and Description|
|Modifier and Type||Method and Description|
Creates a new SSL engine each time a connection is established.
protected final SSLContext sslContext
public ProgrammaticSslEngineFactory(SSLContext sslContext)
Copyright © 2017–2019. All rights reserved.