libqtaws
0.1.0
UnofficialAWSlibraryforQt-InternalDocumentation
|
Implements AWS Signature Version 0 (deprecated by Amazon). More...
Public Member Functions | |
AwsSignatureV0 () | |
Constructs a new AwsSignatureV0 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. | |
Protected Member Functions | |
AwsSignatureV0 (AwsSignatureV0Private *const d) | |
Constructs a new AwsSignatureV0 object with a specific private implementation. More... | |
![]() | |
AwsAbstractSignature (AwsAbstractSignaturePrivate *const d) | |
Initialises an AwsAbstractSignature object. More... | |
Friends | |
class | TestAwsSignatureV0 |
Additional Inherited Members | |
![]() | |
AwsAbstractSignaturePrivate *const | d_ptr |
Internal d-pointer. | |
Implements AWS Signature Version 0 (deprecated by Amazon).
As version 0 signatures are rightly regarded as insecure, this class will refuse to sign requests that use insecure transports such as HTTP instead of HTTPS. However, insecure signatures can be enabled (why would you want to?) by defining QTAWS_ALLOW_INSECURE_SIGNATURES
when compiling this library.
Definition at line 30 of file awssignaturev0.h.
AwsSignatureV0::AwsSignatureV0 | ( | ) |
Constructs a new AwsSignatureV0 object.
Use instances of this object to provide Version 0 signatures for AWS services.
Definition at line 57 of file awssignaturev0.cpp.
|
protected |
Constructs a new AwsSignatureV0 object with a specific private implementation.
This internal constructor allows derived classes to provide their own derived private implementation. Specifically, AwsSignatureV1 uses this constructor to extend this class.
d | Internal private implementation to use. |
Definition at line 75 of file awssignaturev0.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 80 of file awssignaturev0.cpp.
References AwsAbstractCredentials::secretKey(), and version().
|
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.
Reimplemented in AwsSignatureV1.
Definition at line 111 of file awssignaturev0.cpp.
Referenced by sign().