![]() |
Kurlyk
|
Abstract interface for token persistence. More...
#include <TokenStorage.hpp>
Public Member Functions | |
| virtual | ~ITokenStorage () |
| virtual bool | save (const OAuthToken &token)=0 |
| Saves an OAuth token. | |
| virtual bool | load (OAuthToken &out_token)=0 |
| Loads an OAuth token. | |
| virtual bool | clear ()=0 |
| Clears any stored token. | |
Abstract interface for token persistence.
Implementations may store tokens in memory, files, encrypted keychains, or platform-specific credential vaults. This interface does not prescribe encryption — that is the responsibility of the concrete implementation.
Definition at line 21 of file TokenStorage.hpp.
|
inlinevirtual |
Definition at line 23 of file TokenStorage.hpp.
|
pure virtual |
Clears any stored token.
|
pure virtual |
Loads an OAuth token.
| out_token | Receives the loaded token. |
|
pure virtual |
Saves an OAuth token.
| token | The token to persist. |