◆ constructor()
QorusOAuth2RestApi::QorusAuthToken::constructor |
( |
timeout |
v_duration, |
|
|
int |
v_type, |
|
|
__7_ string |
v_client_id, |
|
|
string |
v_username |
|
) |
| |
|
inline |
- Parameters
-
v_duration | number of seconds of inactivity after which the token expires |
v_type | type of token to be generated (TT_ACCESS, TT_AUTHORIZATION, TT_REFRESH) |
v_client_id | id of OAuth2 client for which the token is being generated |
v_username | name of the user the client belongs to |
◆ getToken()
string QorusOAuth2RestApi::QorusAuthToken::getToken |
( |
| ) |
|
|
inline |
◆ getTokenExpirationTime()
int QorusOAuth2RestApi::QorusAuthToken::getTokenExpirationTime |
( |
| ) |
|
|
inline |
Get the time to live of the token
◆ getUsername()
string QorusOAuth2RestApi::QorusAuthToken::getUsername |
( |
| ) |
|
|
inline |
◆ hasExpired()
bool QorusOAuth2RestApi::QorusAuthToken::hasExpired |
( |
int |
t | ) |
|
|
inline |
Check if the token is still valid
◆ refresh()
QorusOAuth2RestApi::QorusAuthToken::refresh |
( |
| ) |
|
|
inline |
Prolong the time to live of the token
◆ validForClient()
bool QorusOAuth2RestApi::QorusAuthToken::validForClient |
( |
__7_ string |
id | ) |
|
|
inline |
Checks if the token is valid for given client
The documentation for this class was generated from the following file: