Skip to main content
Version: 1.12.0

Class: CantonStaticProvider

Defined in: canton/authentication/static.ts:53

Static auth provider — pre-obtained JWT with TLS transport security.

Mirrors Go authentication.NewStaticProvider. Use for remote/production Canton participant endpoints.

Extends

  • StaticProviderBase

Constructors

Constructor

new CantonStaticProvider(jwt: string): StaticProvider

Defined in: canton/authentication/static.ts:31

Creates a new static provider wrapping the given JWT.

Parameters

ParameterType
jwtstring

Returns

StaticProvider

Inherited from

StaticProviderBase.constructor

Properties

type

readonly type: CantonAuthType = AuthType.Static

Defined in: canton/authentication/static.ts:54

Overrides

StaticProviderBase.type

Methods

tokenSource()

tokenSource(): CantonTokenSource

Defined in: canton/authentication/static.ts:42

Returns the static token source.

Returns

CantonTokenSource

Inherited from

StaticProviderBase.tokenSource