Class SelfSignedSslBuilder
java.lang.Object
io.micronaut.http.ssl.SslBuilder<io.netty.handler.ssl.SslContext>
io.micronaut.http.server.netty.ssl.AbstractServerSslBuilder
io.micronaut.http.server.netty.ssl.SelfSignedSslBuilder
- All Implemented Interfaces:
ServerSslBuilder
@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 AbstractServerSslBuilder
implements ServerSslBuilder
The Netty implementation of
SslBuilder
that generates an SslContext
to create a server handler
with SSL support via a generated self signed certificate.-
Constructor Summary
ConstructorDescriptionSelfSignedSslBuilder
(HttpServerConfiguration serverConfiguration, ServerSslConfiguration ssl, ResourceResolver resourceResolver) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class io.micronaut.http.server.netty.ssl.AbstractServerSslBuilder
build, build, build, buildQuic, getKeyManagerFactory, processBuilder
Methods inherited from class io.micronaut.http.ssl.SslBuilder
getTrustManagerFactory, getTrustStore, load
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.server.netty.ssl.ServerSslBuilder
build, buildQuic
-
Constructor Details
-
SelfSignedSslBuilder
public SelfSignedSslBuilder(HttpServerConfiguration serverConfiguration, ServerSslConfiguration ssl, ResourceResolver resourceResolver) - Parameters:
serverConfiguration
- The server configurationssl
- The SSL configurationresourceResolver
- The resource resolver
-
-
Method Details
-
getSslConfiguration
- Specified by:
getSslConfiguration
in interfaceServerSslBuilder
- Returns:
- The SSL configuration
-
getKeyStore
- Overrides:
getKeyStore
in classSslBuilder<io.netty.handler.ssl.SslContext>
- Parameters:
ssl
- The ssl configuration- Returns:
- An optional
KeyStore
- Throws:
Exception
- if there is an error
-