AWS4Signer class
A signer that performs Signature Version 4 signing process.
Signer signs the requests for the provided region and serviceName with given credentialsProvider.
AWS docs: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
Constructors
- AWS4Signer(AWSCredentialsProvider credentialsProvider, {required String region, required String serviceName})
- Construct a new AWS4Signer instance.
Properties
- credentialsProvider → AWSCredentialsProvider
-
Credentials provider used for signing process.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- region → String
-
AWS region (e.g. us-east-1).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceName → String
-
AWS service name (e.g. sts).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
presign(
AWSRequest request, {Duration expires = const Duration(seconds: 60), bool? signPayload, DateTime? overrideDate}) → void - Presigns the given request by adding the signature to the URL.
-
sign(
AWSRequest request, {DateTime? overrideDate}) → void - Signs the given request by adding the signature to 'Authorization' header.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited