@Requires(property="micronaut.ssl.enabled",value="true",defaultValue="false") @Requires(property="micronaut.ssl.build-self-signed",value="true",defaultValue="false") @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 to SSL support via a generated self signed certificate.Constructor and Description |
---|
SelfSignedSslBuilder(HttpServerConfiguration serverConfiguration,
ServerSslConfiguration ssl,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.netty.handler.ssl.SslContext> |
build() |
java.util.Optional<io.netty.handler.ssl.SslContext> |
build(SslConfiguration ssl) |
java.util.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 java.util.Optional<io.netty.handler.ssl.SslContext> build()
build
in interface ServerSslBuilder
public 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 version