- All Known Subinterfaces:
RotatingClientCertificateManager
ClientCertificate instances used by the driver for mTLS.
The driver uses the ClientCertificate supplied by the manager for setting up new connections. Therefore,
a change of the certificate affects subsequent new connections only.
The manager must never return null. Exceptions must be emitted via the CompletionStage only.
All implementations of this interface must be thread-safe and non-blocking for caller threads. For instance, IO operations must not done on the calling thread.
- Since:
- 5.19
-
Method Summary
-
Method Details
-
getClientCertificate
CompletionStage<ClientCertificate> getClientCertificate()Returns aCompletionStageof a newClientCertificate.The first
CompletionStagesupplied to the driver must not complete with null to ensure the driver has the initialClientCertificate.Afterwards, the
CompletionStagemay complete with null to indicate no update. If theCompletionStagecompletes withClientCertificate, the driver loads the suppliedClientCertificate.- Returns:
- the certificate stage, must not be null
-