LCOV - code coverage report
Current view: top level - core - awssignaturev3.h (source / functions) Hit Total Coverage
Test: libqtaws 0.1.0 Lines: 2 2 100.0 %
Date: 2015-06-16 07:50:35 Functions: 4 4 100.0 %

          Line data    Source code
       1             : /*
       2             :     Copyright 2013-2015 Paul Colby
       3             : 
       4             :     This file is part of libqtaws.
       5             : 
       6             :     Libqtaws is free software: you can redistribute it and/or modify
       7             :     it under the terms of the GNU Lesser General Public License as published by
       8             :     the Free Software Foundation, either version 3 of the License, or
       9             :     (at your option) any later version.
      10             : 
      11             :     Libqtaws is distributed in the hope that it will be useful,
      12             :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      13             :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14             :     GNU Lesser General Public License for more details.
      15             : 
      16             :     You should have received a copy of the GNU Lesser General Public License
      17             :     along with libqtaws.  If not, see <http://www.gnu.org/licenses/>.
      18             : */
      19             : 
      20             : #ifndef AWSSIGNATUREV3_H
      21             : #define AWSSIGNATUREV3_H
      22             : 
      23             : #include "qtawsglobal.h"
      24             : #include "awsabstractsignature.h"
      25             : 
      26             : #include <QCryptographicHash>
      27             : 
      28             : QTAWS_BEGIN_NAMESPACE
      29             : 
      30             : class AwsSignatureV3Private;
      31             : 
      32          59 : class QTAWS_EXPORT AwsSignatureV3 : public AwsAbstractSignature {
      33             : 
      34             : public:
      35             :     AwsSignatureV3(const QCryptographicHash::Algorithm hashAlgorithm = QCryptographicHash::Sha256);
      36             : 
      37             :     virtual void sign(const AwsAbstractCredentials &credentials,
      38             :                       const QNetworkAccessManager::Operation operation,
      39             :                       QNetworkRequest &request, const QByteArray &data = QByteArray()) const;
      40             : 
      41             :     virtual int version() const;
      42             : 
      43             : private:
      44          57 :     Q_DECLARE_PRIVATE(AwsSignatureV3)
      45             :     friend class TestAwsSignatureV3;
      46             : };
      47             : 
      48             : QTAWS_END_NAMESPACE
      49             : 
      50             : #endif

Generated by: LCOV version 1.11