Interface CertificateProviderProvider
-
- All Known Implementing Classes:
FileWatcherCertificateProviderProvider
@Internal public interface CertificateProviderProvider
Provider ofCertificateProvider
s. Implemented by the implementer of the plugin. We may move this out of the internal package and make this an official API in the future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CertificateProvider
createCertificateProvider(java.lang.Object config, CertificateProvider.DistributorWatcher watcher, boolean notifyCertUpdates)
Creates aCertificateProvider
plugin.java.lang.String
getName()
Returns the unique name of theCertificateProvider
plugin.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the unique name of theCertificateProvider
plugin.
-
createCertificateProvider
CertificateProvider createCertificateProvider(java.lang.Object config, CertificateProvider.DistributorWatcher watcher, boolean notifyCertUpdates)
Creates aCertificateProvider
plugin.- Parameters:
config
- configuration needed by the Provider to create the CertificateProvider. A form of JSON that the Provider understands e.g. a string or a key-value Map.watcher
- ACertificateProvider.Watcher
to receive updates from the CertificateProvidernotifyCertUpdates
- if true, the provider is required to call the watcher’s updateCertificate method. Implies the Provider is capable of minting certificates. Used by server-side and mTLS client-side. Note the Provider is always required to call updateTrustedRoots to provide trusted-root updates.- Throws:
java.lang.IllegalArgumentException
- in case of errors in processing config.java.lang.UnsupportedOperationException
- if the plugin is incapable of sending cert updates when notifyCertUpdates is true.
-
-