Skip to content

TokenInfo Class

  • TokenInfo
  • class Esri::ArcGISRuntime::Authentication::TokenInfo

    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/TokenInfo.h>
    Since: Esri::ArcGISRuntime 200.8
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    TokenInfo(const QString &accessToken, const QDateTime &expirationDate, bool isSslRequired, QObject *parent = nullptr)
    virtual ~TokenInfo() override
    QString accessToken() const
    QDateTime expirationDate() const
    bool isSslRequired() const
    bool operator!=(Esri::ArcGISRuntime::Authentication::TokenInfo *other) const
    bool operator==(Esri::ArcGISRuntime::Authentication::TokenInfo *other) const

    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 - true if the token must be passed over HTTPS, false otherwise.
    • 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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.