Package io.micronaut.http.ssl
Class SslBuilder<T>
java.lang.Object
io.micronaut.http.ssl.SslBuilder<T>
- Type Parameters:
T- The server specific type to be built
A class to build a key store and a trust store for use in adding SSL support to a server.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(SslConfiguration ssl) build(SslConfiguration ssl, HttpVersion httpVersion) protected KeyManagerFactoryprotected @Nullable TrustManagerFactoryprotected KeyStore
-
Constructor Details
-
SslBuilder
public SslBuilder(io.micronaut.core.io.ResourceResolver resourceResolver) - Parameters:
resourceResolver- The resource resolver
-
-
Method Details
-
build
- Parameters:
ssl- The ssl configuration- Returns:
- Builds the SSL configuration wrapped inside an optional
-
build
- Parameters:
ssl- The ssl configurationhttpVersion- The http version- Returns:
- Builds the SSL configuration wrapped inside an optional
-
getTrustManagerFactory
- Parameters:
ssl- The ssl configuration- Returns:
- The
TrustManagerFactory, ornullfor the default JDK trust store
-
getTrustStore
-
getKeyManagerFactory
- Parameters:
ssl- The ssl configuration- Returns:
- The
KeyManagerFactory
-
getKeyStore
-
load
-