AWSRemoteSpecHeaderDelegate class
Indicates whether or not the spec file live within AWS.
Since AWS handles the authentication header differently, we need to inform the builder to include the alternate auth header.
This currently only supports AWS Object GET.
This contains authentication information for fetching the OAS spec ONLY. This does not apply security to the entry points defined in the OAS spec.
This delegate makes the assumption that the AWS credentials to be used are provided by the environment and are not empty.
- Inheritance
-
- Object
- RemoteSpecHeaderDelegate
- AWSRemoteSpecHeaderDelegate
Constructors
- AWSRemoteSpecHeaderDelegate({required String bucket, String? secretAccessKey = null, String? accessKeyId = null})
-
const
-
AWSRemoteSpecHeaderDelegate.fromMap(Map<
String, dynamic> map)
Properties
- accessKeyId → String?
-
final
- bucket → String
-
The bucket where the OAS spec is stored within AWS.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secretAccessKey → String?
-
final
Methods
-
authHeaderContent(
{required DateTime now, required String bucket, required String path, required String accessKeyId, required String secretAccessKey}) → String -
The
Authentication
header content. -
header(
{String? path}) → Map< String, String> ? -
Generates the header map used within the GET request.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited