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
- Direct Known Subclasses:
AbstractServerSslBuilder
,JdkClientSslBuilder
,NettyClientSslBuilder
A class to build a key store and a trust store for use in adding SSL support to a server.
- Since:
- 1.0
- Author:
- James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(SslConfiguration ssl) build
(SslConfiguration ssl, HttpVersion httpVersion) protected KeyManagerFactory
protected @Nullable TrustManagerFactory
protected KeyStore
-
Constructor Details
-
SslBuilder
- 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
, ornull
for the default JDK trust store
-
getTrustStore
-
getKeyManagerFactory
- Parameters:
ssl
- The ssl configuration- Returns:
- The
KeyManagerFactory
-
getKeyStore
-
load
-