|
libnick 2025.10.0
A cross-platform base for native Nickvision applications.
|
Functions | |
| std::optional< Keyring::Credential > | get (const std::string &name) noexcept |
| Gets a credential from the system's credential manager. | |
| std::optional< Keyring::Credential > | create (const std::string &name) noexcept |
| Creates a new credential with a random password and adds it to the system's credential manager. | |
| bool | add (const Keyring::Credential &credential) noexcept |
| Adds a new credential object to the system's credential manager. | |
| bool | update (const Keyring::Credential &credential) noexcept |
| Updates a credential object in the system's credential manager. | |
| bool | remove (const std::string &name) noexcept |
| Removes a credential object from the system's credential manager. | |
|
noexcept |
Adds a new credential object to the system's credential manager.
On Linux, only the name and password of a credential object will be stored.
On Windows, all fields of a credential object will be stored.
On macOS, all fields of a credential object will be stored.
| credential | The new credential object |
|
noexcept |
Creates a new credential with a random password and adds it to the system's credential manager.
| name | The name of the credential to create |
|
noexcept |
Gets a credential from the system's credential manager.
| name | The name of the credential |
|
noexcept |
Removes a credential object from the system's credential manager.
| name | The name of the credential to remove |
|
noexcept |
Updates a credential object in the system's credential manager.
On Linux, only the name and password of a credential object will be stored.
On Windows, all fields of a credential object will be stored.
On macOS, all fields of a credential object will be stored.
| credential | The updated credential object |