A base class for types of ArcGIS credentials used to access secured resources. More...
Header | #include <Authentication/ |
Since | Esri |
Inherits | Esri |
Inherited By | Esri |
Public Functions
virtual | ~ |
Esri | arc |
Q | referer() const |
Q | server |
Q | username() const |
bool | operator!=( |
bool | operator==( |
Reimplemented Public Functions
virtual Q | to |
(deprecated) virtual Q | unknown |
(deprecated) virtual Q | unsupported |
Static Public Members
Esri | from |
Detailed Description
This is a base class for ArcGIS credentials requiring OAuth or ArcGIS Token authentication, such as OAuthUserCredential, OAuthApplicationCredential, PregeneratedTokenCredential and TokenCredential.
Member Function Documentation
[override virtual noexcept]
ArcGISCredential::~ArcGISCredential ()
Destructor.
Esri::ArcGISRuntime::Authentication::ArcGISCredentialType ArcGISCredential::arcGISCredentialType () const
Returns the type of the credential.
[static]
Esri::ArcGISRuntime::Authentication::ArcGISCredential *ArcGISCredential::fromJson (const QString &json, QObject *parent = nullptr)
Convert a JSON string to an object.
- json - The JSON string.
- parent - The optional parent QObject.
QString ArcGISCredential::referer() const
Returns the referer used to generate a token.
- TokenCredential - The referer is `app://arcgis-maps/<application identifier>`.
- PregeneratedTokenCredential - The referer passed to the constructor should match the referer used to generate the token, or empty string if none was used.
- OAuthUserCredential and OAuthApplicationCredential - The referer is an empty string.
QUrl ArcGISCredential::serverContext () const
Returns the URL by which the root of a server is accessed.
This is the URL against which rest endpoints are resolved. For example, "https://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0" would have a server context of "https://sampleserver3.arcgisonline.com/ArcGIS", on which we could add "/rest/info" or "/rest" to fetch the server information.
[override virtual]
QString ArcGISCredential::toJson () const
Reimplements: JsonSerializable::toJson() const.
Converts and returns an object to JSON string.
QString ArcGISCredential::username() const
Returns the user associated with the credential.
bool ArcGISCredential::operator!=(Esri::ArcGISRuntime::Authentication::ArcGISCredential *other) const
Tests and returns true
if the two ArcGISCredential objects are not equal.
- other - The second object to compare to.
bool ArcGISCredential::operator==(Esri::ArcGISRuntime::Authentication::ArcGISCredential *other) const
Tests and returns true
if the two ArcGISCredential objects are equal.
- other - The credential to compare to.