@Requires(property="micronaut.ssl.enabled",value="true",defaultValue="false") @Requires(property="micronaut.ssl.build-self-signed",value="false",defaultValue="false") @Singleton @Internal public class CertificateProvidedSslBuilder extends SslBuilder<io.netty.handler.ssl.SslContext> implements ServerSslBuilder
SslBuilder
that generates an SslContext
to create a server handle with
SSL support via user configuration.ssl
Constructor and Description |
---|
CertificateProvidedSslBuilder(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 CertificateProvidedSslBuilder(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>