import {RotatingClientCertificateProvider} from 'neo4j-driver-core/lib/client-certificate.js'
RotatingClientCertificateProvider
Extends:
Interface for ClientCertificateProvider which provides update certificate function.
Method Summary
Public Methods | ||
public |
updateCertificate(certificate: ClientCertificate) Updates the certificate stored in the provider. |
Inherited Summary
From class ClientCertificateProvider | ||
public |
getClientCertificate(): Promise<ClientCertificate> | ClientCertificate Returns the certificate to use for new connections. |
|
public |
hasUpdate(): Promise<boolean> | boolean Indicates whether the client wants the driver to update the certificate. |
Public Methods
public updateCertificate(certificate: ClientCertificate) source
Updates the certificate stored in the provider.
To be called by user-code when a new client certificate is available.
Params:
Name | Type | Attribute | Description |
certificate | ClientCertificate | the new certificate |
Throw:
TypeError |
If initialCertificate is not a ClientCertificate. |