SecurityValueProvider

class SecurityValueProvider(validSecurityValues: Map<String, String> = emptyMap())

Provides valid security values for API key and authorization schemes.

Inputs: a map of scheme name to credential value. Output: deterministic values (configured or placeholders) used by ValidCaseBuilder and auth rules.

Parameters

validSecurityValues

a map where the key represents the security scheme name and the value is the corresponding credential or parameter

Constructors

Link copied to clipboard
constructor(validSecurityValues: Map<String, String> = emptyMap())

Functions

Link copied to clipboard
fun getAuthorizationSchemaValue(authorizeHeaderRequirements: List<SecuritySchemeToScope>): String

Generates the value of the Authorization header based on the provided scheme requirements.

Link copied to clipboard

Retrieves a valid API key value for the given security scheme.