Classes | |
class | BinaryNinja::SecretsProvider |
Class for storing secrets (e.g. More... | |
class | BinaryNinja::CoreSecretsProvider |
class BinaryNinja::SecretsProvider |
Class for storing secrets (e.g.
tokens) in a system-specific manner
Public Member Functions | |
virtual bool | HasData (const std::string &key)=0 |
Check if data for a specific key exists, but do not retrieve it. More... | |
virtual std::optional< std::string > | GetData (const std::string &key)=0 |
Retrieve data for the given key, if it exists. More... | |
virtual bool | StoreData (const std::string &key, const std::string &data)=0 |
Store data with the given key. More... | |
virtual bool | DeleteData (const std::string &key)=0 |
Delete stored data with the given key. More... | |
![]() | |
StaticCoreRefCountObject () | |
virtual | ~StaticCoreRefCountObject () |
BNSecretsProvider * | GetObject () const |
void | AddRef () |
void | Release () |
void | AddRefForRegistration () |
void | AddRefForCallback () |
void | ReleaseForCallback () |
Static Public Member Functions | |
static std::vector< Ref< SecretsProvider > > | GetList () |
Retrieve the list of providers. More... | |
static Ref< SecretsProvider > | GetByName (const std::string &name) |
Retrieve a provider by name. More... | |
static void | Register (SecretsProvider *provider) |
Register a new provider. More... | |
![]() | |
static BNSecretsProvider * | GetObject (StaticCoreRefCountObject *obj) |
Protected Member Functions | |
SecretsProvider (const std::string &name) | |
SecretsProvider (BNSecretsProvider *provider) | |
Static Protected Member Functions | |
static bool | HasDataCallback (void *ctxt, const char *key) |
static char * | GetDataCallback (void *ctxt, const char *key) |
static bool | StoreDataCallback (void *ctxt, const char *key, const char *data) |
static bool | DeleteDataCallback (void *ctxt, const char *key) |
Additional Inherited Members | |
![]() | |
std::atomic< int > | m_refs |
BNSecretsProvider * | m_object |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
pure virtual |
Check if data for a specific key exists, but do not retrieve it.
key | Key for data |
Implemented in BinaryNinja::CoreSecretsProvider.
|
pure virtual |
Retrieve data for the given key, if it exists.
key | Key for data |
Implemented in BinaryNinja::CoreSecretsProvider.
|
pure virtual |
Store data with the given key.
key | Key for data |
data | Data to store |
Implemented in BinaryNinja::CoreSecretsProvider.
|
pure virtual |
Delete stored data with the given key.
key | Key for data |
Implemented in BinaryNinja::CoreSecretsProvider.
|
static |
Retrieve the list of providers.
|
static |
Retrieve a provider by name.
name | Name of provider |
|
static |
Register a new provider.
provider | New provider to register |
class BinaryNinja::CoreSecretsProvider |
Public Member Functions | |
CoreSecretsProvider (BNSecretsProvider *provider) | |
virtual bool | HasData (const std::string &key) override |
Check if data for a specific key exists, but do not retrieve it. More... | |
virtual std::optional< std::string > | GetData (const std::string &key) override |
Retrieve data for the given key, if it exists. More... | |
virtual bool | StoreData (const std::string &key, const std::string &data) override |
Store data with the given key. More... | |
virtual bool | DeleteData (const std::string &key) override |
Delete stored data with the given key. More... | |
virtual bool | HasData (const std::string &key)=0 |
Check if data for a specific key exists, but do not retrieve it. More... | |
virtual std::optional< std::string > | GetData (const std::string &key)=0 |
Retrieve data for the given key, if it exists. More... | |
virtual bool | StoreData (const std::string &key, const std::string &data)=0 |
Store data with the given key. More... | |
virtual bool | DeleteData (const std::string &key)=0 |
Delete stored data with the given key. More... | |
![]() | |
StaticCoreRefCountObject () | |
virtual | ~StaticCoreRefCountObject () |
BNSecretsProvider * | GetObject () const |
void | AddRef () |
void | Release () |
void | AddRefForRegistration () |
void | AddRefForCallback () |
void | ReleaseForCallback () |
Additional Inherited Members | |
![]() | |
static std::vector< Ref< SecretsProvider > > | GetList () |
Retrieve the list of providers. More... | |
static Ref< SecretsProvider > | GetByName (const std::string &name) |
Retrieve a provider by name. More... | |
static void | Register (SecretsProvider *provider) |
Register a new provider. More... | |
![]() | |
static BNSecretsProvider * | GetObject (StaticCoreRefCountObject *obj) |
![]() | |
std::atomic< int > | m_refs |
BNSecretsProvider * | m_object |
![]() | |
SecretsProvider (const std::string &name) | |
SecretsProvider (BNSecretsProvider *provider) | |
![]() | |
static bool | HasDataCallback (void *ctxt, const char *key) |
static char * | GetDataCallback (void *ctxt, const char *key) |
static bool | StoreDataCallback (void *ctxt, const char *key, const char *data) |
static bool | DeleteDataCallback (void *ctxt, const char *key) |
CoreSecretsProvider::CoreSecretsProvider | ( | BNSecretsProvider * | provider | ) |
|
overridevirtual |
Check if data for a specific key exists, but do not retrieve it.
key | Key for data |
Implements BinaryNinja::SecretsProvider.
|
overridevirtual |
Retrieve data for the given key, if it exists.
key | Key for data |
Implements BinaryNinja::SecretsProvider.
|
overridevirtual |
Store data with the given key.
key | Key for data |
data | Data to store |
Implements BinaryNinja::SecretsProvider.
|
overridevirtual |
Delete stored data with the given key.
key | Key for data |
Implements BinaryNinja::SecretsProvider.