Methods
(static) availableAlgorithms() → {object}
Returns an object containing the names of available digest and cipher algorithms.
- Version
- Experimental feature, might be removed at any time
- Since
- 5.3.2
Returns:
- Type:
- object
(static) awsSignV4(request, accessKey, secretKey, region, service, sessionTokenopt) → {$k.HttpRequest}
Adds a AWS Signature Version 4 to the request
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
request | $k. | The request to sign | |
accessKey | string | The access key | |
secretKey | string | The secret key | |
region | string | The region | |
service | string | The service | |
sessionToken | string | <optional> | Optional session token |
- Version
- Experimental feature, might be removed at any time
- Since
- 6.0.0
Returns:
The signed request
- Type:
- $k.
HttpRequest
(static) createHash(algorithm) → {$k.Hash}
Creates a hash object using the given algorithm.
Parameters:
Name | Type | Description |
---|---|---|
algorithm | string | The algorithm to use |
- Version
- Experimental feature, might be removed at any time
- Since
- 5.3.2
Returns:
The hash object
- Type:
- $k.
Hash