ApiAuthorization constructor
const
ApiAuthorization({
- ApiAuthorizationType type = ApiAuthorizationType.none,
- String? token,
- String? jwtSecret,
- String? jwtAlgorithm,
- Map<
String, dynamic> ? jwtPayload, - String? username,
- String? password,
- String? realm,
- String? consumerKey,
- String? consumerSecret,
- String? accessToken,
- String? tokenSecret,
- String? signatureMethod,
- String? oauth2AccessToken,
- String? oauth2HeaderPrefix,
- String? oauth2TokenUrl,
- String? oauth2ClientId,
- String? oauth2ClientSecret,
- String? oauth2Scope,
- String? apiKeyName,
- String? apiKeyValue,
- ApiKeyPlacement? apiKeyPlacement,
- String? awsAccessKey,
- String? awsSecretKey,
- String? awsRegion,
- String? awsService,
- String? hawkId,
- String? hawkKey,
- String? hawkAlgorithm,
- String? ntlmUsername,
- String? ntlmPassword,
- String? ntlmDomain,
- String? ntlmWorkstation,
Creates an ApiAuthorization with full control over every field.
Prefer the named constructors (e.g. ApiAuthorization.bearer) for the common cases.
Implementation
const ApiAuthorization({
this.type = ApiAuthorizationType.none,
this.token,
this.jwtSecret,
this.jwtAlgorithm,
this.jwtPayload,
this.username,
this.password,
this.realm,
this.consumerKey,
this.consumerSecret,
this.accessToken,
this.tokenSecret,
this.signatureMethod,
this.oauth2AccessToken,
this.oauth2HeaderPrefix,
this.oauth2TokenUrl,
this.oauth2ClientId,
this.oauth2ClientSecret,
this.oauth2Scope,
this.apiKeyName,
this.apiKeyValue,
this.apiKeyPlacement,
this.awsAccessKey,
this.awsSecretKey,
this.awsRegion,
this.awsService,
this.hawkId,
this.hawkKey,
this.hawkAlgorithm,
this.ntlmUsername,
this.ntlmPassword,
this.ntlmDomain,
this.ntlmWorkstation,
});