Class to handle the Authentication process.
More...
#include <LoginManager.h>
|
| static void | InitLibrary (const char *plugin_path=nullptr) |
| | Sasl global initialization.
|
| |
| static void | FinalizeLibrary () |
| | Sasl global finalization.
|
| |
Class to handle the Authentication process.
Prior to using an instance of this class, InitLibrary() has to be called.
In Qt6 QML, simply create an SaslInitializer instance before connecting to a process.
◆ LoginManager() [1/2]
| LoginManager::LoginManager |
( |
QString | server_name = QString(), |
|
|
QObject * | parent = nullptr ) |
|
explicit |
◆ ~LoginManager()
| LoginManager::~LoginManager |
( |
| ) |
|
|
default |
◆ LoginManager() [2/2]
◆ clearCredentials()
| void LoginManager::clearCredentials |
( |
| ) |
|
Clear stored credentials.
◆ FinalizeLibrary()
| void LoginManager::FinalizeLibrary |
( |
| ) |
|
|
static |
◆ getErrorMessage()
| QString LoginManager::getErrorMessage |
( |
| ) |
|
◆ InitLibrary()
| void LoginManager::InitLibrary |
( |
const char * | plugin_path = nullptr | ) |
|
|
static |
Sasl global initialization.
Call this at startup of your application to initialize the underlying sasl library.
- Parameters
-
- Exceptions
-
| PdCom::Exception | Initialization failed. |
Referenced by QtPdCom::SaslInitializer::SaslInitializer().
◆ login()
| void LoginManager::login |
( |
| ) |
|
Start the login process.
If possible, please call setAuthName() and setPassword() in advance. Do not call login() from whithin any Authentification-related callback (i.e. slots connected to any of our signals which are not queued connections) as use-after-free can happen as a new session is started.
◆ loginFailed
| void QtPdCom::LoginManager::loginFailed |
( |
| ) |
|
|
signal |
◆ loginSuccessful
| void QtPdCom::LoginManager::loginSuccessful |
( |
| ) |
|
|
signal |
Authentification was successful.
◆ logout()
| void LoginManager::logout |
( |
| ) |
|
◆ needCredentials
| void QtPdCom::LoginManager::needCredentials |
( |
| ) |
|
|
signal |
Username and/or password has not been set.
◆ operator=()
◆ Q_DECLARE_PRIVATE()
◆ Q_DISABLE_COPY()
◆ setAuthName()
| void LoginManager::setAuthName |
( |
QString | name | ) |
|
Set Login Name.
- Parameters
-
◆ setPassword()
| void LoginManager::setPassword |
( |
QString | password | ) |
|
◆ d_ptr
◆ Process
| friend QtPdCom::LoginManager::Process |
|
private |
The documentation for this class was generated from the following files: