ServiceConfiguration class abstract

A description of an AWSSigV4Signer configuration.

All requests made to AWS services must be processed in the precise way that service expects. Since each service is different, this class provides a way to override steps of the signing process which need precedence over the BaseServiceConfiguration.

Annotations
  • @sealed

Constructors

ServiceConfiguration({bool? normalizePath, bool? omitSessionToken, bool? doubleEncodePathSegments, bool? signBody})
A description of an AWSSigV4Signer configuration.
const
factory

Properties

doubleEncodePathSegments bool
Whether path segments should be encoded twice.
final
hashCode int
The hash code for this object.
no setterinherited
normalizePath bool
Whether to normalize paths in the canonical request.
final
omitSessionToken bool
Whether to omit the session token during signing.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signBody bool
Whether to sign the body of requests and include the hash in the request's headers.
final

Methods

applyPresigned(Map<String, String> queryParameters, {required AWSBaseHttpRequest request, required AWSCredentialScope credentialScope, required AWSAlgorithm algorithm, required SignedHeaders signedHeaders, required int expiresIn, required AWSCredentials credentials}) → void
Applies service-specific keys to queryParameters for pre-signed URL requests.
applySigned(Map<String, String> headers, {required AWSBaseHttpRequest request, required AWSCredentialScope credentialScope, required AWSCredentials credentials, required String payloadHash, required int contentLength}) → void
Applies service-specific keys to headers for signed header requests.
hashPayload(AWSBaseHttpRequest request, {required bool presignedUrl}) Future<String>
Hashes the request payload for the canonical request.
hashPayloadSync(AWSBaseHttpRequest request, {required bool presignedUrl}) String
Hashes the request payload for the canonical request synchronously.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transformBody({required AWSAlgorithm algorithm, required int contentLength, required List<int> signingKey, required String seedSignature, required AWSCredentialScope credentialScope, required CanonicalRequest canonicalRequest}) Stream<List<int>>
Transforms the request body using the signingKey and seedSignature.

Operators

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