Quark  0.1
OAuth2AccessToken Class Reference

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...
 
OAuth2AccessTokenoperator= (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...
 

Detailed Description

A representation of an OAuth2 access token.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ OAuth2AccessToken() [1/4]

Default constructor.

◆ OAuth2AccessToken() [2/4]

Copy constructor.

◆ OAuth2AccessToken() [3/4]

OAuth2AccessToken ( const QString &  refreshToken)

Constructs an OAuth2Token with the given refresh token.

◆ OAuth2AccessToken() [4/4]

OAuth2AccessToken ( const QString &  accessToken,
const QString &  refreshToken,
const qint64 &  expirationTime,
const QString &  tokenType 
)

Constructs an OAuth2Token with the given attributes.

Parameters
accessTokenThe access token.
refreshTokenThe refresh token.
expirationTimeThe access token's expiration type.
tokenTypeThe type of token.

◆ ~OAuth2AccessToken()

virtual ~OAuth2AccessToken ( )
virtual

Destructor.

Member Function Documentation

◆ accessToken()

QString accessToken ( ) const
inline

Returns the access token.

◆ expirationTime()

qint64 expirationTime ( ) const
inline

Returns the access token's expiration time.

◆ isExpired()

bool isExpired ( ) const

Tests if the acess token is expired.

◆ isNull()

bool isNull ( ) const

Tests if the access token is null.

◆ operator=()

OAuth2AccessToken& operator= ( const OAuth2AccessToken other)

Assignment operator.

◆ refreshToken()

QString refreshToken ( ) const
inline

Returns the refresh token.

◆ tokenType()

QString tokenType ( ) const
inline

Returns the token type.


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