Skip to main content

StaticLicenseJwtProvider Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.Licensing

StaticLicenseJwtProvider Class

An implementation of ILicenseJwtProvider that returns a predefined license JWT string.

public class StaticLicenseJwtProvider : Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider

Inheritance System.Object → StaticLicenseJwtProvider

Implements ILicenseJwtProvider

Remarks

This class is designed for scenarios where the license JWT is statically known at the time of application initialization. It could be particularly useful in testing environments or situations where the license JWT is obtained from external sources and passed directly to the application without the need for asynchronous retrieval from a configuration store or service.

Constructors

StaticLicenseJwtProvider(string) Constructor

An implementation of ILicenseJwtProvider that returns a predefined license JWT string.

public StaticLicenseJwtProvider(string licenseJwt);

Parameters

licenseJwt System.String

Remarks

This class is designed for scenarios where the license JWT is statically known at the time of application initialization. It could be particularly useful in testing environments or situations where the license JWT is obtained from external sources and passed directly to the application without the need for asynchronous retrieval from a configuration store or service.

Methods

StaticLicenseJwtProvider.GetLicenseJwtAsync() Method

Asynchronously returns the predefined license JWT string.

public System.Collections.Generic.IAsyncEnumerable<string> GetLicenseJwtAsync();

Implements GetLicenseJwtAsync()

Returns

System.Collections.Generic.IAsyncEnumerable<System.String>
A task that returns the license JWT string.