VRay SDK for C++
Loading...
Searching...
No Matches
VRay::AccessTokenView Struct Reference

Basic structure storing a string-based access token with its expiry information. More...

#include <licensing.hpp>

Public Member Functions

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
 
const char * token
 The actual access token. Can be an arbitrarily long string in any format. Currently used mostly for JWT tokens.
 

Detailed Description

Basic structure storing a string-based access token with its expiry information.

Member Data Documentation

◆ expiry

long long VRay::AccessTokenView::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.


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