The access token information that can be used by clients in exchange for user credentials. The access token represents the authenticated user for a certain amount of time to access API functionality. More...
| Header | #include <Authentication/ |
| Since | Esri |
| Inherits | Esri |
Public Functions
| Token | |
| virtual | ~ |
| QString | access |
| QDate | expiration |
| bool | is |
| bool | operator!=( |
| bool | operator==( |
Detailed Description
Member Function Documentation
TokenInfo::TokenInfo (const QString &accessToken , const QDateTime &expirationDate , bool isSslRequired , QObject *parent = nullptr)
Creates an instance of token info from given parameters.
- accessToken - The access token string.
- expirationDate - The token expiration date.
- isSslRequired -
trueif the token must be passed over HTTPS,falseotherwise. - parent - The optional parent QObject.
[override virtual noexcept] TokenInfo::~TokenInfo ()
Destructor.
QString TokenInfo::accessToken () const
Returns the access token string.
QDateTime TokenInfo::expirationDate () const
Returns the token expiration date.
bool TokenInfo::isSslRequired () const
Returns true if the token must be passed over HTTPS, false otherwise.
bool TokenInfo::operator!=(Esri::ArcGISRuntime::Authentication::TokenInfo *other) const
Tests and returns true if the two TokenInfo objects are not equal.
- other - The token information to compare to.
bool TokenInfo::operator==(Esri::ArcGISRuntime::Authentication::TokenInfo *other) const
Tests and returns true if the two TokenInfo objects are equal.
- other - The token information to compare to.