Table of Contents

Class APIKeyValidationService

Namespace
FoundationaLLM.Common.Authentication
Assembly
FoundationaLLM.Common.dll

Implements the IAPIKeyValidationService interface.

public class APIKeyValidationService : IAPIKeyValidationService
Inheritance
APIKeyValidationService
Implements
Inherited Members
Extension Methods

Remarks

Creates a new instance of the APIKeyValidationService class.

Constructors

APIKeyValidationService(IOptions<APIKeyValidationSettings>)

Implements the IAPIKeyValidationService interface.

public APIKeyValidationService(IOptions<APIKeyValidationSettings> options)

Parameters

options IOptions<APIKeyValidationSettings>

otions for the deployed API key validation service.

Remarks

Creates a new instance of the APIKeyValidationService class.

Methods

IsValid(string)

Checks if an API key is valid or not.

public bool IsValid(string apiKey)

Parameters

apiKey string

The API key to be checked.

Returns

bool

A boolean value representing the validity of the API key.