libqtaws
0.1.0
UnofficialAWSlibraryforQt-InternalDocumentation
|
Implements AWS Signature Version 3. More...
Public Member Functions | |
AwsSignatureV3 (const QCryptographicHash::Algorithm hashAlgorithm=QCryptographicHash::Sha256) | |
Constructs a new AwsSignatureV3 object. More... | |
virtual void | sign (const AwsAbstractCredentials &credentials, const QNetworkAccessManager::Operation operation, QNetworkRequest &request, const QByteArray &data=QByteArray()) const |
Sign an AWS request. More... | |
virtual int | version () const |
AWS Signature version implemented by this class. More... | |
![]() | |
AwsAbstractSignature () | |
Initialises an AwsAbstractSignature object. More... | |
virtual | ~AwsAbstractSignature () |
AwsAbstractSignature destructor. | |
Friends | |
class | TestAwsSignatureV3 |
Additional Inherited Members | |
![]() | |
AwsAbstractSignature (AwsAbstractSignaturePrivate *const d) | |
Initialises an AwsAbstractSignature object. More... | |
![]() | |
AwsAbstractSignaturePrivate *const | d_ptr |
Internal d-pointer. | |
Implements AWS Signature Version 3.
This class implements both AWS3
and AWS3-HTTPS
varieties.
Definition at line 32 of file awssignaturev3.h.
AwsSignatureV3::AwsSignatureV3 | ( | const QCryptographicHash::Algorithm | hashAlgorithm = QCryptographicHash::Sha256 | ) |
Constructs a new AwsSignatureV3 object.
Use instances of this object to provide Version 3 signatures for AWS services.
hashAlgorithm | Hash algorithm for signatures. Must be either QCryptographicHash::Sha1 or QCryptographicHash::Sha256 (default, recommended). |
Definition at line 55 of file awssignaturev3.cpp.
|
virtual |
Sign an AWS request.
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.
operation | The network operation to sign request for. |
request | The network request to be signed. |
credentials | The credentials to use for signing. |
data | Optional POST / PUT data to sign request for. |
Implements AwsAbstractSignature.
Definition at line 61 of file awssignaturev3.cpp.
|
virtual |
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.
Implements AwsAbstractSignature.
Definition at line 77 of file awssignaturev3.cpp.