@Singleton @Internal public class NettyClientSslBuilder extends SslBuilder<io.netty.handler.ssl.SslContext>
SslBuilder
that generates an SslContext
to create a client that
supports SSL.Constructor and Description |
---|
NettyClientSslBuilder(ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl) |
java.util.Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl,
HttpVersion httpVersion) |
protected javax.net.ssl.KeyManagerFactory |
getKeyManagerFactory(SslConfiguration ssl) |
protected javax.net.ssl.TrustManagerFactory |
getTrustManagerFactory(SslConfiguration ssl) |
getKeyStore, getTrustStore, load
@Inject public NettyClientSslBuilder(ResourceResolver resourceResolver)
resourceResolver
- The resource resolverpublic java.util.Optional<io.netty.handler.ssl.SslContext> build(SslConfiguration ssl)
build
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationpublic java.util.Optional<io.netty.handler.ssl.SslContext> build(SslConfiguration ssl, HttpVersion httpVersion)
build
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationhttpVersion
- The http versionprotected javax.net.ssl.KeyManagerFactory getKeyManagerFactory(SslConfiguration ssl)
getKeyManagerFactory
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationKeyManagerFactory
protected javax.net.ssl.TrustManagerFactory getTrustManagerFactory(SslConfiguration ssl)
getTrustManagerFactory
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationTrustManagerFactory