|
Quark
0.1
|
A representation of an OAuth2 access token. More...
#include <OAuth2AccessToken.h++>
Public Member Functions | |
| OAuth2AccessToken () | |
| Default constructor. More... | |
| OAuth2AccessToken (const OAuth2AccessToken &other) | |
| Copy constructor. More... | |
| OAuth2AccessToken (const QString &refreshToken) | |
| Constructs an OAuth2Token with the given refresh token. More... | |
| OAuth2AccessToken (const QString &accessToken, const QString &refreshToken, const qint64 &expirationTime, const QString &tokenType) | |
| Constructs an OAuth2Token with the given attributes. More... | |
| virtual | ~OAuth2AccessToken () |
| Destructor. More... | |
| OAuth2AccessToken & | operator= (const OAuth2AccessToken &other) |
| Assignment operator. More... | |
| QString | accessToken () const |
| Returns the access token. More... | |
| QString | refreshToken () const |
| Returns the refresh token. More... | |
| qint64 | expirationTime () const |
| Returns the access token's expiration time. More... | |
| QString | tokenType () const |
| Returns the token type. More... | |
| bool | isNull () const |
| Tests if the access token is null. More... | |
| bool | isExpired () const |
| Tests if the acess token is expired. More... | |
A representation of an OAuth2 access token.
Default constructor.
| OAuth2AccessToken | ( | const OAuth2AccessToken & | other | ) |
Copy constructor.
| OAuth2AccessToken | ( | const QString & | refreshToken | ) |
Constructs an OAuth2Token with the given refresh token.
| OAuth2AccessToken | ( | const QString & | accessToken, |
| const QString & | refreshToken, | ||
| const qint64 & | expirationTime, | ||
| const QString & | tokenType | ||
| ) |
Constructs an OAuth2Token with the given attributes.
| accessToken | The access token. |
| refreshToken | The refresh token. |
| expirationTime | The access token's expiration type. |
| tokenType | The type of token. |
|
virtual |
Destructor.
|
inline |
Returns the access token.
|
inline |
Returns the access token's expiration time.
| bool isExpired | ( | ) | const |
Tests if the acess token is expired.
| bool isNull | ( | ) | const |
Tests if the access token is null.
| OAuth2AccessToken& operator= | ( | const OAuth2AccessToken & | other | ) |
Assignment operator.
|
inline |
Returns the refresh token.
|
inline |
Returns the token type.