A credential that can be used to authenticate network connections using server trust. More...
Header | #include <Authentication/ |
Since | Esri |
Inherits | Esri |
Public Functions
virtual | ~ |
Static Public Members
Esri | create |
Detailed Description
Server trust credentials are used to authenticate network connections that report, for example, SSL errors. An example of this might be a self-signed certificate.
Once a host is trusted, it will continue to be trusted for the duration of the app session.
Note: Authenticating a network connection with an untrusted connection can be useful while developing and debugging an application in a QA environment, but is not recommended as a best practice for production workflows.
Member Function Documentation
[override virtual noexcept]
ServerTrustCredential::~ServerTrustCredential ()
Destructor.
[static]
Esri::ArcGISRuntime::Authentication::ServerTrustCredential *ServerTrustCredential::createWithChallenge (Esri::ArcGISRuntime::Authentication::NetworkAuthenticationChallenge *challenge, QObject *parent = nullptr)
Creates a new server trust credential.
If the challenge is not a server trust challenge, then this will return nullptr
.
- challenge - The network authentication challenge. It must be a server trust challenge.
- parent - an optional QObject parent.