Home Reference Source
import {RotatingClientCertificateProvider} from 'neo4j-driver-core/lib/client-certificate.js'
public interface | since 5.19 | source

RotatingClientCertificateProvider

Extends:

ClientCertificateProvider → RotatingClientCertificateProvider
this class is experimental. Exposed as preview feature.

Interface for ClientCertificateProvider which provides update certificate function.

Method Summary

Public Methods
public

Updates the certificate stored in the provider.

Inherited Summary

From class ClientCertificateProvider
public

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:

NameTypeAttributeDescription
certificate ClientCertificate

the new certificate

Throw:

TypeError

If initialCertificate is not a ClientCertificate.