Sigv4 class

Constructors

Sigv4()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

buildAuthorizationHeader(String accessKey, String credentialScope, Map<String, dynamic> headers, String signature) String
Builds the Authorization headers
buildCanonicalHeaders(Map<String, dynamic> headers) String
Builds a canonical header string from the given headers
buildCanonicalQueryString(Map<String, dynamic>? query) String
Builds a canonical query string from the given query parameters
buildCanonicalRequest(String? method, String path, Map<String, dynamic>? query, Map<String, dynamic> headers, String payload) String
Builds a canonical string containing a complete request
buildCanonicalSignedHeaders(Map<String, dynamic> headers) String
Builds a signed canonical header string from the given headers
buildCanonicalUri(String uri) String
Encodes the given string to a canonical URI
buildCredentialScope(String datetime, String region, String service) String
Builds the required credential scope
buildStringToSign(String datetime, String credentialScope, String hashedCanonicalRequest) String
Builds the complete canonical string to sign
calculateSignature(List<int> signingKey, String stringToSign) String
Builds a Hex-encoded signature with the given signingKeyand stringToSign
calculateSigningKey(String secretKey, String datetime, String region, String service) List<int>
Builds the key to use for signing
generateDatetime() String
Generates a date string compliant with the AWS Signature V4 standard
hash(List<int> value) List<int>
Creates a SHA256 hash from the given value byte array
override
hashPayload(String payload) String
Hex-encodes a SHA256 hash of the given payload string, payload
hexEncode(List<int> value) String
Encodes the given value byte array with the Hex Codec
sign(List<int> key, String message) List<int>
Signs the given message with the given key using HMAC