@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.ssl
Constructor and Description |
---|
SelfSignedSslBuilder(ServerSslConfiguration ssl,
ResourceResolver resourceResolver) |
Modifier and Type | Method and Description |
---|---|
Optional<io.netty.handler.ssl.SslContext> |
build() |
ServerSslConfiguration |
getSslConfiguration() |
getKeyManagerFactory, getKeyStore, getTrustManagerFactory, getTrustStore, load
public SelfSignedSslBuilder(ServerSslConfiguration ssl, ResourceResolver resourceResolver)
ssl
- The SSL configurationresourceResolver
- The resource resolverpublic ServerSslConfiguration getSslConfiguration()
getSslConfiguration
in interface ServerSslBuilder
public Optional<io.netty.handler.ssl.SslContext> build()
build
in interface ServerSslBuilder
build
in class SslBuilder<io.netty.handler.ssl.SslContext>