@Requires(condition=io.micronaut.http.server.netty.ssl.SslEnabledCondition.class) @Requires(condition=io.micronaut.http.server.netty.ssl.SelfSignedSslBuilder.SelfSignedConfigured.class) @Singleton @Internal public class SelfSignedSslBuilder extends SslBuilder<io.netty.handler.ssl.SslContext> implements ServerSslBuilder
SslBuilder
that generates an SslContext
to create a server handler
with SSL support via a generated self signed certificate.Constructor and Description |
---|
SelfSignedSslBuilder(HttpServerConfiguration serverConfiguration,
ServerSslConfiguration ssl,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
Optional<io.netty.handler.ssl.SslContext> |
build() |
Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl) |
Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl,
HttpVersion httpVersion) |
ServerSslConfiguration |
getSslConfiguration() |
getKeyManagerFactory, getKeyStore, getTrustManagerFactory, getTrustStore, load
public SelfSignedSslBuilder(HttpServerConfiguration serverConfiguration, ServerSslConfiguration ssl, ResourceResolver resourceResolver)
serverConfiguration
- The server configurationssl
- The SSL configurationresourceResolver
- The resource resolverpublic ServerSslConfiguration getSslConfiguration()
getSslConfiguration
in interface ServerSslBuilder
public Optional<io.netty.handler.ssl.SslContext> build()
build
in interface ServerSslBuilder
public 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 version