|
KiCad PCB EDA Suite
|
#include <secure_token_store.h>
Public Member Functions | |
| SECURE_TOKEN_STORE (std::unique_ptr< OAUTH_SECRET_BACKEND > aBackend=std::make_unique< PLATFORM_SECRET_BACKEND >()) | |
| bool | StoreTokens (const wxString &aProviderId, const wxString &aAccountId, const OAUTH_TOKEN_SET &aTokens) |
| std::optional< OAUTH_TOKEN_SET > | LoadTokens (const wxString &aProviderId, const wxString &aAccountId) const |
| bool | DeleteTokens (const wxString &aProviderId, const wxString &aAccountId) |
Static Public Member Functions | |
| static wxString | MakeServiceName (const wxString &aProviderId) |
Private Attributes | |
| std::unique_ptr< OAUTH_SECRET_BACKEND > | m_backend |
Definition at line 66 of file secure_token_store.h.
|
explicit |
Definition at line 73 of file secure_token_store.cpp.
| bool SECURE_TOKEN_STORE::DeleteTokens | ( | const wxString & | aProviderId, |
| const wxString & | aAccountId ) |
Definition at line 109 of file secure_token_store.cpp.
References m_backend, and MakeServiceName().
Referenced by BOOST_AUTO_TEST_CASE(), and DIALOG_REMOTE_SYMBOL_CONFIG::onSignOutProvider().
| std::optional< OAUTH_TOKEN_SET > SECURE_TOKEN_STORE::LoadTokens | ( | const wxString & | aProviderId, |
| const wxString & | aAccountId ) const |
Definition at line 87 of file secure_token_store.cpp.
References m_backend, and MakeServiceName().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 115 of file secure_token_store.cpp.
Referenced by DeleteTokens(), LoadTokens(), and StoreTokens().
| bool SECURE_TOKEN_STORE::StoreTokens | ( | const wxString & | aProviderId, |
| const wxString & | aAccountId, | ||
| const OAUTH_TOKEN_SET & | aTokens ) |
Definition at line 79 of file secure_token_store.cpp.
References dump(), m_backend, and MakeServiceName().
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 81 of file secure_token_store.h.
Referenced by DeleteTokens(), LoadTokens(), SECURE_TOKEN_STORE(), and StoreTokens().