Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
FallbackCredentialsManager Class Reference

Implementation of CredentialsManager that stores credentials in plain-text. More...

#include <credentialmanager.h>

Inheritance diagram for FallbackCredentialsManager:
CredentialsManager

Public Member Functions

 FallbackCredentialsManager (QObject *parent=nullptr)
 
void store (const QString &server, const QString &user, const QString &token) override
 Stores a token.
 
void get (const QString &server, const QString &user) const override
 Retrieves a stored token. Emits tokenRetrieved when the token is retrieved.
 
void remove (const QString &server, const QString &user) override
 removes a token
 
void listServers () const override
 Gives the list of servers that have a user stored with a token.
 
void listUsers (const QString &server) override
 List the users with a token on a server.
 
bool isSecure () const override
 

Additional Inherited Members

- Signals inherited from CredentialsManager
void tokenRetrieved (const QString &server, const QString &user, const QString &token) const
 
void serversListed (const QStringList &servers) const
 
void usersListed (const QString &server, const QStringList &users) const
 
- Static Public Member Functions inherited from CredentialsManager
static CredentialsManagernewInstance (QObject *parent=nullptr)
 Retrieves an implementation which can store this token.
 
- Protected Member Functions inherited from CredentialsManager
 CredentialsManager (QObject *parent=nullptr)
 

Detailed Description

Implementation of CredentialsManager that stores credentials in plain-text.

Constructor & Destructor Documentation

◆ FallbackCredentialsManager()

FallbackCredentialsManager::FallbackCredentialsManager ( QObject * parent = nullptr)

Member Function Documentation

◆ get()

void FallbackCredentialsManager::get ( const QString & server,
const QString & user ) const
overridevirtual

Retrieves a stored token. Emits tokenRetrieved when the token is retrieved.

Parameters
serverThe serverId to retrieve the token from.
userThe user to retrieve the token for

Reimplemented from CredentialsManager.

◆ isSecure()

bool FallbackCredentialsManager::isSecure ( ) const
inlineoverridevirtual
Returns
if the implementation of this interface stores the token in a secure place.

Reimplemented from CredentialsManager.

◆ listServers()

void FallbackCredentialsManager::listServers ( ) const
overridevirtual

Gives the list of servers that have a user stored with a token.

Reimplemented from CredentialsManager.

◆ listUsers()

void FallbackCredentialsManager::listUsers ( const QString & server)
overridevirtual

List the users with a token on a server.

Parameters
server

Reimplemented from CredentialsManager.

◆ remove()

void FallbackCredentialsManager::remove ( const QString & server,
const QString & user )
overridevirtual

removes a token

Parameters
server
user

Reimplemented from CredentialsManager.

◆ store()

void FallbackCredentialsManager::store ( const QString & server,
const QString & user,
const QString & token )
overridevirtual

Stores a token.

Parameters
serverThe server to store the token for
userThe user to store the token for.
tokenThe token to store.

Reimplemented from CredentialsManager.


The documentation for this class was generated from the following files: