@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 |
---|---|
Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl) |
Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl,
HttpVersion httpVersion) |
protected KeyManagerFactory |
getKeyManagerFactory(SslConfiguration ssl) |
protected TrustManagerFactory |
getTrustManagerFactory(SslConfiguration ssl) |
getKeyStore, getTrustStore, load
public NettyClientSslBuilder(ResourceResolver resourceResolver)
resourceResolver
- The resource resolverpublic Optional<io.netty.handler.ssl.SslContext> build(SslConfiguration ssl)
build
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationpublic 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 KeyManagerFactory getKeyManagerFactory(SslConfiguration ssl)
getKeyManagerFactory
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationKeyManagerFactory
protected TrustManagerFactory getTrustManagerFactory(SslConfiguration ssl)
getTrustManagerFactory
in class SslBuilder<io.netty.handler.ssl.SslContext>
ssl
- The ssl configurationTrustManagerFactory
, or null
for the default JDK trust store