yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::platform::WasmSecureStorage Class Reference

#include <wasm_secure_storage.h>

Classes

struct  StorageQuota
 

Public Types

enum class  StorageType { kSession , kLocal }
 

Static Public Member Functions

static absl::Status StoreApiKey (const std::string &, const std::string &, StorageType=StorageType::kSession)
 
static absl::StatusOr< std::string > RetrieveApiKey (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status ClearApiKey (const std::string &, StorageType=StorageType::kSession)
 
static bool HasApiKey (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status StoreSecret (const std::string &, const std::string &, StorageType=StorageType::kSession)
 
static absl::StatusOr< std::string > RetrieveSecret (const std::string &, StorageType=StorageType::kSession)
 
static absl::Status ClearSecret (const std::string &, StorageType=StorageType::kSession)
 
static std::vector< std::string > ListStoredApiKeys (StorageType=StorageType::kSession)
 
static absl::Status ClearAllApiKeys (StorageType=StorageType::kSession)
 
static bool IsStorageAvailable ()
 
static absl::StatusOr< StorageQuotaGetStorageQuota (StorageType=StorageType::kSession)
 

Detailed Description

Non-WASM stub for WasmSecureStorage. All methods return Unimplemented/NotFound as secure browser storage is not available.

Definition at line 195 of file wasm_secure_storage.h.

Member Enumeration Documentation

◆ StorageType

Enumerator
kSession 
kLocal 

Definition at line 197 of file wasm_secure_storage.h.

Member Function Documentation

◆ StoreApiKey()

static absl::Status yaze::app::platform::WasmSecureStorage::StoreApiKey ( const std::string & ,
const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 199 of file wasm_secure_storage.h.

◆ RetrieveApiKey()

static absl::StatusOr< std::string > yaze::app::platform::WasmSecureStorage::RetrieveApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 204 of file wasm_secure_storage.h.

◆ ClearApiKey()

static absl::Status yaze::app::platform::WasmSecureStorage::ClearApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 209 of file wasm_secure_storage.h.

◆ HasApiKey()

static bool yaze::app::platform::WasmSecureStorage::HasApiKey ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 214 of file wasm_secure_storage.h.

◆ StoreSecret()

static absl::Status yaze::app::platform::WasmSecureStorage::StoreSecret ( const std::string & ,
const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 219 of file wasm_secure_storage.h.

◆ RetrieveSecret()

static absl::StatusOr< std::string > yaze::app::platform::WasmSecureStorage::RetrieveSecret ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 224 of file wasm_secure_storage.h.

◆ ClearSecret()

static absl::Status yaze::app::platform::WasmSecureStorage::ClearSecret ( const std::string & ,
StorageType = StorageType::kSession )
inlinestatic

Definition at line 229 of file wasm_secure_storage.h.

◆ ListStoredApiKeys()

static std::vector< std::string > yaze::app::platform::WasmSecureStorage::ListStoredApiKeys ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 234 of file wasm_secure_storage.h.

◆ ClearAllApiKeys()

static absl::Status yaze::app::platform::WasmSecureStorage::ClearAllApiKeys ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 239 of file wasm_secure_storage.h.

◆ IsStorageAvailable()

static bool yaze::app::platform::WasmSecureStorage::IsStorageAvailable ( )
inlinestatic

Definition at line 243 of file wasm_secure_storage.h.

◆ GetStorageQuota()

static absl::StatusOr< StorageQuota > yaze::app::platform::WasmSecureStorage::GetStorageQuota ( StorageType = StorageType::kSession)
inlinestatic

Definition at line 250 of file wasm_secure_storage.h.


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