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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classSpecification for building aKeyStore, either as a key store or a trust store.protected static final classCertificate spec based onSslConfiguration.KeyStoreConfiguration.getPath()orSslConfiguration.TrustStoreConfiguration.getPath().protected static final classCertificate spec based onSslConfiguration.KeyStoreConfiguration.getKeyPath()andSslConfiguration.KeyStoreConfiguration.getCertificatePath(), both of which must contain a PEM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(SslConfiguration ssl) build(SslConfiguration ssl, HttpVersion httpVersion) protected KeyManagerFactoryprotected TrustManagerFactoryprotected TrustManagerFactorygetTrustManagerFactory(KeyStore store) protected KeyStoreprotected KeyStoreDeprecated, for removal: This API element is subject to removal in a future version.
-
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
@Deprecated(forRemoval=true) protected KeyStore load(Optional<String> optionalType, String resource, Optional<String> optionalPassword) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.Please overrideload(CertificateSpec)instead -
load
-
load(CertificateSpec)instead