ApiKeyAuthenticationStrategy

class ApiKeyAuthenticationStrategy(val apiKey: String, val subscriptionId: String = apiKey) : AuthenticationStrategy

ApiKeyAuthenticationStrategy is a class that implements the AuthenticationStrategy interface. It uses an API key for authenticating requests made by the Aiuta SDK.

Throws

if the provided API key is empty.

Constructors

Link copied to clipboard
constructor(apiKey: String, subscriptionId: String = apiKey)

Properties

Link copied to clipboard

The API key used for authentication. It must be a non-empty string.

Link copied to clipboard
open override val subscriptionId: String