libqtaws  0.1.0
UnofficialAWSlibraryforQt
awsbasiccredentials.h
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 AWSBASICCREDENTIALS_H
21 #define AWSBASICCREDENTIALS_H
22 
23 #include "awsabstractcredentials.h"
24 
25 QTAWS_BEGIN_NAMESPACE
26 
27 class AwsBasicCredentialsPrivate;
28 
29 class QTAWS_EXPORT AwsBasicCredentials : public AwsAbstractCredentials {
30  Q_OBJECT
31 
32 public:
33  AwsBasicCredentials(const QString &accessKeyid,
34  const QString &secretKey,
35  const QString &token,
36  QObject * const parent = 0);
37 
38  AwsBasicCredentials(const QString &accessKeyid,
39  const QString &secretKey,
40  QObject * const parent = 0);
41 
43 
44  virtual QString accessKeyId() const;
45  virtual QString secretKey() const;
46  virtual QString token() const;
47 
48 public slots:
49  virtual void setAccessKeyId(const QString &accessKeyId);
50  virtual void setSecretKey(const QString &secretKey);
51  virtual void setToken(const QString &token);
52 
53 private:
54  Q_DECLARE_PRIVATE(AwsBasicCredentials)
55  AwsBasicCredentialsPrivate * const d_ptr;
56 
57 };
58 
59 QTAWS_END_NAMESPACE
60 
61 #endif
Basic non-refreshable implementation of AwsAbstractCredentials.
Definition: awsbasiccredentials.h:29
virtual QString secretKey() const =0
AWS secret access key for this credentials object.
Interface class for providing AWS credentials.
Definition: awsabstractcredentials.h:30
virtual QString token() const =0
AWS security token for this credentials object.
virtual QString accessKeyId() const =0
AWS access key ID for this credentials object.