AwsAbstractSignature Class
(QtAws::Core::AwsAbstractSignature)The AwsAbstractSignature class provides an interface for generating AWS signatures. More...
| Header: | #include <AwsAbstractSignature> |
| Inherited By: | QtAws::Core::AwsSignatureV0, QtAws::Core::AwsSignatureV2, QtAws::Core::AwsSignatureV3, and QtAws::Core::AwsSignatureV4 |
Public Functions
| virtual | ~AwsAbstractSignature() |
| virtual void | sign(const AwsAbstractCredentials &credentials, const QNetworkAccessManager::Operation operation, QNetworkRequest &request, const QByteArray &data = QByteArray()) const = 0 |
| virtual int | version() const = 0 |
Detailed Description
The AwsAbstractSignature class provides an interface for generating AWS signatures.
Member Function Documentation
[virtual] AwsAbstractSignature::~AwsAbstractSignature()
Destroys the AWS signature.
[pure virtual] void AwsAbstractSignature::sign(const AwsAbstractCredentials &credentials, const QNetworkAccessManager::Operation operation, QNetworkRequest &request, const QByteArray &data = QByteArray()) const
Sings the AWS network request using the supplied credentials.
The network operation, and optional POST/PUT data may be used in the signing process, according to the implemented AWS signature version.
Note: credentials must be valid before calling this function. So, for example, if credentials has expired, and is refreshable, it is the caller's responsibility to refresh the credentials before calling this function.
The signature if added to the request object itself (ie request will be modified by the call).
[pure virtual] int AwsAbstractSignature::version() const
Returns the AWS Signature version implemented by this class.
Derived classes must implement this function to report the version of the AWS Signature implemented by the class.
© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.