Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Password Manager class for saving authentication details. More...
#include <PasswordManager.h>
Public Member Functions | |
bool | AuthenticateURL (CURL &url) |
Authenticate a URL by looking the URL up in the temporary and permanent caches First looks up based on host and share name. If that fails, it will try a match purely on the host name (eg different shares on the same host with the same credentials) | |
bool | PromptToAuthenticateURL (CURL &url) |
Prompt for a username and password for the particular URL. | |
void | SaveAuthenticatedURL (const CURL &url, bool saveToProfile=true) |
Save an authenticated URL. | |
bool | IsURLSupported (const CURL &url) |
Is an URL is supported (by the manager) | |
void | Clear () |
Clear any previously cached passwords. | |
Static Public Member Functions | |
static CPasswordManager & | GetInstance () |
The only way through which the global instance of the CPasswordManager should be accessed. | |
Password Manager class for saving authentication details.
Handles access to previously saved passwords for paths, translating normal URLs into authenticated URLs if the user has details about the username and password for a path previously saved. Should be accessed via CPasswordManager::GetInstance()
Authenticate a URL by looking the URL up in the temporary and permanent caches First looks up based on host and share name. If that fails, it will try a match purely on the host name (eg different shares on the same host with the same credentials)
url | a CURL to authenticate |
void CPasswordManager::Clear | ( | ) |
Clear any previously cached passwords.
|
static |
The only way through which the global instance of the CPasswordManager should be accessed.
Is an URL is supported (by the manager)
This routine checks that an URL is supported by the manager
url | the URL to check. |
Prompt for a username and password for the particular URL.
This routine pops up a dialog, requesting the user enter a username and password to access the given URL. The user may optionally save these details. If saved we write the details into the users profile. If not saved, the details are temporarily stored so that further access no longer requires prompting for authentication.
url | the URL to authenticate. |
Save an authenticated URL.
This routine stores an authenticated URL in the temporary cache, and optionally saves these details into the users profile.
url | the URL to authenticate. |
saveToProfile | whether to save in the users profile, defaults to true. |