Skip to content

Commit

Permalink
mTLS functionality taken out of preview (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxAake authored Nov 26, 2024
1 parent 0ebd3b5 commit 3b42b85
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 24 deletions.
15 changes: 5 additions & 10 deletions packages/core/src/client-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ type KeyFile = string | { path: string, password?: string }
*
* @interface
* @see https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export default class ClientCertificate {
public readonly certfile: string | string[]
Expand Down Expand Up @@ -87,8 +86,7 @@ export default class ClientCertificate {
* Should fetching the certificate be particularly slow, it might be necessary to increase the timeout.
*
* @interface
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export class ClientCertificateProvider {
/**
Expand Down Expand Up @@ -116,8 +114,7 @@ export class ClientCertificateProvider {
/**
* Interface for {@link ClientCertificateProvider} which provides update certificate function.
* @interface
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export class RotatingClientCertificateProvider extends ClientCertificateProvider {
/**
Expand All @@ -136,8 +133,7 @@ export class RotatingClientCertificateProvider extends ClientCertificateProvider
/**
* Defines the object which holds the common {@link ClientCertificateProviders} used in the Driver
*
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
class ClientCertificateProviders {
/**
Expand All @@ -161,8 +157,7 @@ class ClientCertificateProviders {
/**
* Holds the common {@link ClientCertificateProviders} used in the Driver.
*
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
const clientCertificateProviders: ClientCertificateProviders = new ClientCertificateProviders()

Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ export class Config {
* where the {@link ClientCertificate} might change over time.
*
* @type {ClientCertificate|ClientCertificateProvider|undefined}
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
this.clientCertificate = undefined
}
Expand Down
15 changes: 5 additions & 10 deletions packages/neo4j-driver-deno/lib/core/client-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ type KeyFile = string | { path: string, password?: string }
*
* @interface
* @see https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export default class ClientCertificate {
public readonly certfile: string | string[]
Expand Down Expand Up @@ -87,8 +86,7 @@ export default class ClientCertificate {
* Should fetching the certificate be particularly slow, it might be necessary to increase the timeout.
*
* @interface
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export class ClientCertificateProvider {
/**
Expand Down Expand Up @@ -116,8 +114,7 @@ export class ClientCertificateProvider {
/**
* Interface for {@link ClientCertificateProvider} which provides update certificate function.
* @interface
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
export class RotatingClientCertificateProvider extends ClientCertificateProvider {
/**
Expand All @@ -136,8 +133,7 @@ export class RotatingClientCertificateProvider extends ClientCertificateProvider
/**
* Defines the object which holds the common {@link ClientCertificateProviders} used in the Driver
*
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
class ClientCertificateProviders {
/**
Expand All @@ -161,8 +157,7 @@ class ClientCertificateProviders {
/**
* Holds the common {@link ClientCertificateProviders} used in the Driver.
*
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
const clientCertificateProviders: ClientCertificateProviders = new ClientCertificateProviders()

Expand Down
3 changes: 1 addition & 2 deletions packages/neo4j-driver-deno/lib/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ export class Config {
* where the {@link ClientCertificate} might change over time.
*
* @type {ClientCertificate|ClientCertificateProvider|undefined}
* @experimental Exposed as preview feature.
* @since 5.19
* @since 5.27
*/
this.clientCertificate = undefined
}
Expand Down

0 comments on commit 3b42b85

Please sign in to comment.