Interface CertificateProviderProvider
-
- All Known Implementing Classes:
FileWatcherCertificateProviderProvider
@Internal public interface CertificateProviderProviderProvider ofCertificateProviders. 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 CertificateProvidercreateCertificateProvider(java.lang.Object config, CertificateProvider.DistributorWatcher watcher, boolean notifyCertUpdates)Creates aCertificateProviderplugin.java.lang.StringgetName()Returns the unique name of theCertificateProviderplugin.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the unique name of theCertificateProviderplugin.
-
createCertificateProvider
CertificateProvider createCertificateProvider(java.lang.Object config, CertificateProvider.DistributorWatcher watcher, boolean notifyCertUpdates)
Creates aCertificateProviderplugin.- 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.Watcherto 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.
-
-