VRay SDK for C++
|
Basic structure storing a string-based access token with its expiry information. More...
#include <licensing.hpp>
Public Member Functions | |
AccessToken (const AccessTokenView &view) | |
long long | getRelativeExpiry () const |
Returns the number of seconds until the token would expire. A negative value is returned if the token is invalid or already expired. | |
int | isValid () const |
Returns true if the token is still valid. This includes non-empty check for the token contents and expiration check with the current time. | |
Public Attributes | |
long long | expiry |
std::string | token |
The actual access token. Can be an arbitrarily long string in any format. Currently used mostly for JWT tokens. | |
Basic structure storing a string-based access token with its expiry information.
long long VRay::AccessToken::expiry |
The expiry of the token, as seconds since the Unix epoch. I.e. when time(nullptr) returns a value greater than this one, the token has expired.