System::Net::CredentialCache class

CredentialCache class

Provides the credentials storage. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class CredentialCache : public System::Net::ICredentials,
                        public System::Net::ICredentialsByHost

Methods

MethodDescription
Add(System::SharedPtr<Uri>, String, System::SharedPtr<NetworkCredential>)Adds the specified network credentials to the cache.
Add(String, int32_t, String, System::SharedPtr<NetworkCredential>)Adds the specified network credentials to the cache.
CredentialCache()Constructs a new instance.
static get_DefaultCredentials()RTTI information.
static get_DefaultNetworkCredentials()Returns the network credentials of the current user or application.
GetCredential(System::SharedPtr<Uri>, String) overrideReturns credentials for the specified URI prefix and authentication type.
GetCredential(String, int32_t, String) overrideReturns credentials for the specified host name, port, and authentication type.
Remove(System::SharedPtr<Uri>, String)Removes network credentials for the specified URI prefix and authentication type.
Remove(String, int32_t, String)Removes network credentials for the specified host name, port, and authentication type.

See Also