Skip to content

NetworkCredentialStore Class

  • NetworkCredentialStore
  • class Esri::ArcGISRuntime::Authentication::NetworkCredentialStore

    A store for instances of the subclasses of NetworkCredential. More...

    Header: #include <Authentication/NetworkCredentialStore.h>
    Since: Esri::ArcGISRuntime 200.8
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~NetworkCredentialStore() override
    QSet<Esri::ArcGISRuntime::Authentication::NetworkCredential *> credentialsForHost(const QString &host) const
    QFuture<void> removeAllAsync()

    Detailed Description

    The NetworkCredentialStore is used to store instances of the subclasses of NetworkCredential. Network credentials are required when services have PKI, IWA or other types of security requirements. Another case is Server Trust, when a server's certificate is not trusted by the system, the user can provide a ServerTrust credential to trust this.

    Member Function Documentation

    [override virtual noexcept] NetworkCredentialStore::~NetworkCredentialStore()

    Destructor.

    QSet<Esri::ArcGISRuntime::Authentication::NetworkCredential *> NetworkCredentialStore::credentialsForHost(const QString &host) const

    Returns the set of credentials for the given host.

    QFuture<void> NetworkCredentialStore::removeAllAsync()

    Asynchronously removes all credentials from the store, and returns a future that will be completed when the operation is done.

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