Package io.micronaut.http.ssl
Class SelfSignedCertificateProvider
java.lang.Object
io.micronaut.http.ssl.SelfSignedCertificateProvider
- All Implemented Interfaces:
Named
,CertificateProvider
@EachBean(Config.class)
@Requires(classes=io.netty.pkitesting.X509Bundle.class)
public final class SelfSignedCertificateProvider
extends Object
implements CertificateProvider
Certificate provider that creates self-signed certificates using netty-pkitesting.
- Since:
- 4.10.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Certificate provider that creates self-signed certificates using netty-pkitesting. -
Field Summary
Fields inherited from interface io.micronaut.http.ssl.CertificateProvider
CONFIG_PREFIX
-
Method Summary
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.ssl.CertificateProvider
getTrustStore
-
Method Details
-
getKeyStore
Description copied from interface:CertificateProvider
Publisher that emits the key store containing private key and/or certificates. To avoid weird initialization issues, it is highly recommended to return a publisher here that produces a key store immediately upon subscription, on the subscribing thread. This avoids race conditions where e.g. a server starts up before a key store is available, and there is a short interval where SSL connections will fail.- Specified by:
getKeyStore
in interfaceCertificateProvider
- Returns:
- a publisher of
KeyStore
updates
-
getName
-