Package io.micronaut.http.ssl
Class ResourceCertificateProvider
java.lang.Object
io.micronaut.http.ssl.ResourceCertificateProvider
- All Implemented Interfaces:
Named
,CertificateProvider
@EachBean(Config.class)
public final class ResourceCertificateProvider
extends Object
implements CertificateProvider
Certificate provider that loads certificate material from a resource loader.
- Since:
- 4.10.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Configuration for resource-based certificate material. -
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
-