#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.Licensing](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing 'Abblix\.Oidc\.Server\.Features\.Licensing')

## StaticLicenseJwtProvider Class

An implementation of [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider') that returns a predefined license JWT string\.

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

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → StaticLicenseJwtProvider

Implements [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.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 {#Abblix.Oidc.Server.Features.Licensing.StaticLicenseJwtProvider.StaticLicenseJwtProvider(string)}

An implementation of [ILicenseJwtProvider](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider') that returns a predefined license JWT string\.

```csharp
public StaticLicenseJwtProvider(string licenseJwt);
```
#### Parameters

###### `licenseJwt` [System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String') {#Abblix.Oidc.Server.Features.Licensing.StaticLicenseJwtProvider.StaticLicenseJwtProvider(string).licenseJwt}

### 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 {#Abblix.Oidc.Server.Features.Licensing.StaticLicenseJwtProvider.GetLicenseJwtAsync()}

Asynchronously returns the predefined license JWT string\.

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

Implements [GetLicenseJwtAsync\(\)](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider#Abblix.Oidc.Server.Features.Licensing.ILicenseJwtProvider.GetLicenseJwtAsync() 'Abblix\.Oidc\.Server\.Features\.Licensing\.ILicenseJwtProvider\.GetLicenseJwtAsync\(\)')

#### Returns
[System\.Collections\.Generic\.IAsyncEnumerable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1 'System\.Collections\.Generic\.IAsyncEnumerable\`1')[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string 'System\.String')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.iasyncenumerable-1 'System\.Collections\.Generic\.IAsyncEnumerable\`1')  
A task that returns the license JWT string\.
