libqtaws  0.1.0
UnofficialAWSlibraryforQt-InternalDocumentation
Public Slots | Public Member Functions | Private Attributes | List of all members
AwsBasicCredentials Class Reference

Basic non-refreshable implementation of AwsAbstractCredentials. More...

Inheritance diagram for AwsBasicCredentials:
Inheritance graph
[legend]
Collaboration diagram for AwsBasicCredentials:
Collaboration graph
[legend]

Public Slots

virtual void setAccessKeyId (const QString &accessKeyId)
 Set the AWS access key ID for this credentials object. More...
 
virtual void setSecretKey (const QString &secretKey)
 Set the AWS secret access key for this credentials object. More...
 
virtual void setToken (const QString &token)
 Set the AWS security token for this credentials object. More...
 
- Public Slots inherited from AwsAbstractCredentials
virtual bool refresh ()
 Refresh this object's credentials. More...
 

Public Member Functions

 AwsBasicCredentials (const QString &accessKeyid, const QString &secretKey, const QString &token, QObject *const parent=0)
 Constructs a new AwsBasicCredentials object. More...
 
 AwsBasicCredentials (const QString &accessKeyid, const QString &secretKey, QObject *const parent=0)
 Constructs a new AwsBasicCredentials object. More...
 
virtual QString accessKeyId () const
 AWS access key ID for this credentials object. More...
 
virtual QString secretKey () const
 AWS secret access key for this credentials object. More...
 
virtual QString token () const
 AWS security token for this credentials object. More...
 
- Public Member Functions inherited from AwsAbstractCredentials
 AwsAbstractCredentials (QObject *const parent=0)
 Construct an AwsAbstractCredentials. More...
 
virtual QDateTime expiration () const
 DateTime at which the credentials will expire. More...
 
virtual bool isExpired () const
 Is this credentials object currently expired. More...
 
virtual bool isRefreshable () const
 Is this credentials object refreshable. More...
 

Private Attributes

AwsBasicCredentialsPrivate *const d_ptr
 Internal d-pointer.
 

Additional Inherited Members

- Signals inherited from AwsAbstractCredentials
void changed ()
 Signal emitted when this object's credentials have been updated. More...
 

Detailed Description

Basic non-refreshable implementation of AwsAbstractCredentials.

Definition at line 29 of file awsbasiccredentials.h.

Constructor & Destructor Documentation

AwsBasicCredentials::AwsBasicCredentials ( const QString &  accessKeyId,
const QString &  secretKey,
const QString &  token,
QObject *const  parent = 0 
)

Constructs a new AwsBasicCredentials object.

Constructs a new AwsBasicCredentials object, with the specified AWS access key, AWS secret key, and AWS security token.

Parameters
accessKeyIdThe AWS access key ID to use for this credentials object.
secretKeyThe AWS secret access key to use for this credentials object.
tokenThe AWS security token to use for this credentials object.
parentThis object's parent.

Definition at line 42 of file awsbasiccredentials.cpp.

References accessKeyId(), secretKey(), and token().

48 {
50  d->accessKeyId = accessKeyId;
51  d->secretKey = secretKey;
52  d->token = token;
53 }
Basic non-refreshable implementation of AwsAbstractCredentials.
virtual QString token() const
AWS security token for this credentials object.
virtual QString secretKey() const
AWS secret access key for this credentials object.
virtual QString accessKeyId() const
AWS access key ID for this credentials object.
AwsAbstractCredentials(QObject *const parent=0)
Construct an AwsAbstractCredentials.
AwsBasicCredentialsPrivate *const d_ptr
Internal d-pointer.
Private implementation for AwsBasicCredentials.
AwsBasicCredentials::AwsBasicCredentials ( const QString &  accessKeyId,
const QString &  secretKey,
QObject *const  parent = 0 
)

Constructs a new AwsBasicCredentials object.

Constructs a new AwsBasicCredentials object, with the specified AWS access key and AWS secret key. The object's security token will be left as null string, unless set later via setToken().

Parameters
accessKeyIdThe AWS access key ID to use for this credentials object.
secretKeyThe AWS secret access key to use for this credentials object.
parentThis object's parent.

Definition at line 65 of file awsbasiccredentials.cpp.

References accessKeyId(), and secretKey().

70 {
72  d->accessKeyId = accessKeyId;
73  d->secretKey = secretKey;
74 }
Basic non-refreshable implementation of AwsAbstractCredentials.
virtual QString secretKey() const
AWS secret access key for this credentials object.
virtual QString accessKeyId() const
AWS access key ID for this credentials object.
AwsAbstractCredentials(QObject *const parent=0)
Construct an AwsAbstractCredentials.
AwsBasicCredentialsPrivate *const d_ptr
Internal d-pointer.
Private implementation for AwsBasicCredentials.

Member Function Documentation

QString AwsBasicCredentials::accessKeyId ( ) const
virtual

AWS access key ID for this credentials object.

Returns
The AWS access key ID for this credentials object.

Implements AwsAbstractCredentials.

Definition at line 81 of file awsbasiccredentials.cpp.

Referenced by AwsBasicCredentials(), and setAccessKeyId().

82 {
83  Q_D(const AwsBasicCredentials);
84  return d->accessKeyId;
85 }
Basic non-refreshable implementation of AwsAbstractCredentials.
QString AwsBasicCredentials::secretKey ( ) const
virtual

AWS secret access key for this credentials object.

Returns
The AWS secret access key for this credentials object.

Implements AwsAbstractCredentials.

Definition at line 87 of file awsbasiccredentials.cpp.

Referenced by AwsBasicCredentials(), and setSecretKey().

88 {
89  Q_D(const AwsBasicCredentials);
90  return d->secretKey;
91 }
Basic non-refreshable implementation of AwsAbstractCredentials.
void AwsBasicCredentials::setAccessKeyId ( const QString &  accessKeyId)
virtualslot

Set the AWS access key ID for this credentials object.

Parameters
accessKeyIdThe AWS access key ID to set for this credentials object.

Definition at line 104 of file awsbasiccredentials.cpp.

References accessKeyId(), and AwsAbstractCredentials::changed().

105 {
106  Q_D(AwsBasicCredentials);
107  d->accessKeyId = accessKeyId;
108  emit changed();
109 }
Basic non-refreshable implementation of AwsAbstractCredentials.
void changed()
Signal emitted when this object's credentials have been updated.
virtual QString accessKeyId() const
AWS access key ID for this credentials object.
void AwsBasicCredentials::setSecretKey ( const QString &  secretKey)
virtualslot

Set the AWS secret access key for this credentials object.

Parameters
secretKeyThe AWS secret access key to set for this credentials object.

Definition at line 116 of file awsbasiccredentials.cpp.

References AwsAbstractCredentials::changed(), and secretKey().

117 {
118  Q_D(AwsBasicCredentials);
119  d->secretKey = secretKey;
120  emit changed();
121 }
Basic non-refreshable implementation of AwsAbstractCredentials.
virtual QString secretKey() const
AWS secret access key for this credentials object.
void changed()
Signal emitted when this object's credentials have been updated.
void AwsBasicCredentials::setToken ( const QString &  token)
virtualslot

Set the AWS security token for this credentials object.

Parameters
tokenThe AWS security token to set for this credentials object.

Definition at line 128 of file awsbasiccredentials.cpp.

References AwsAbstractCredentials::changed(), and token().

129 {
130  Q_D(AwsBasicCredentials);
131  d->token = token;
132  emit changed();
133 }
Basic non-refreshable implementation of AwsAbstractCredentials.
virtual QString token() const
AWS security token for this credentials object.
void changed()
Signal emitted when this object's credentials have been updated.
QString AwsBasicCredentials::token ( ) const
virtual

AWS security token for this credentials object.

Returns
The AWS security token for this credentials object.

Implements AwsAbstractCredentials.

Definition at line 93 of file awsbasiccredentials.cpp.

Referenced by AwsBasicCredentials(), and setToken().

94 {
95  Q_D(const AwsBasicCredentials);
96  return d->token;
97 }
Basic non-refreshable implementation of AwsAbstractCredentials.

The documentation for this class was generated from the following files: