ApiKeyStrategy class

Static API-key authentication.

Inheritance

Constructors

ApiKeyStrategy({required String apiKey, String headerName = 'x-api-key'})
const

Properties

apiKey → String
final
hashCode → int
The hash code for this object.
no setterinherited
headerName → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(RequestOptions options, AuthStrategyContext context) → Future<void>
override
clearCredentials(AuthStrategyContext context) → Future<void>
inherited
hasCredentials(AuthStrategyContext context) → Future<bool>
override
initialize(AuthStrategyContext context) → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUnauthorized(AuthStrategyContext context) → Future<void>
inherited
saveCredentials(String? credential, AuthStrategyContext context) → Future<void>
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited