ApiAuthorization constructor

const ApiAuthorization({
  1. ApiAuthorizationType type = ApiAuthorizationType.none,
  2. String? token,
  3. String? jwtSecret,
  4. String? jwtAlgorithm,
  5. Map<String, dynamic>? jwtPayload,
  6. String? username,
  7. String? password,
  8. String? realm,
  9. String? consumerKey,
  10. String? consumerSecret,
  11. String? accessToken,
  12. String? tokenSecret,
  13. String? signatureMethod,
  14. String? oauth2AccessToken,
  15. String? oauth2HeaderPrefix,
  16. String? oauth2TokenUrl,
  17. String? oauth2ClientId,
  18. String? oauth2ClientSecret,
  19. String? oauth2Scope,
  20. String? apiKeyName,
  21. String? apiKeyValue,
  22. ApiKeyPlacement? apiKeyPlacement,
  23. String? awsAccessKey,
  24. String? awsSecretKey,
  25. String? awsRegion,
  26. String? awsService,
  27. String? hawkId,
  28. String? hawkKey,
  29. String? hawkAlgorithm,
  30. String? ntlmUsername,
  31. String? ntlmPassword,
  32. String? ntlmDomain,
  33. 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,
});