Skip to content

ServerTrustCredential Class

  • ServerTrustCredential
  • class Esri::ArcGISRuntime::Authentication::ServerTrustCredential

    A credential that can be used to authenticate network connections using server trust. More...

    Header: #include <Authentication/ServerTrustCredential.h>
    Since: Esri::ArcGISRuntime 200.8
    Inherits: Esri::ArcGISRuntime::Authentication::NetworkCredential

    Public Functions

    virtual ~ServerTrustCredential() override

    Static Public Members

    Esri::ArcGISRuntime::Authentication::ServerTrustCredential *createWithChallenge(Esri::ArcGISRuntime::Authentication::NetworkAuthenticationChallenge *challenge, QObject *parent = nullptr)

    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.

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