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 TrustManagerFactory
protected TrustManagerFactory
getTrustManagerFactory
(KeyStore store) 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
-
getTrustManagerFactory
- Parameters:
store
- The key store- Returns:
- The
TrustManagerFactory
-
getTrustStore
-
getKeyManagerFactory
- Parameters:
ssl
- The ssl configuration- Returns:
- The
KeyManagerFactory
-
getKeyStore
-
load
-