Dash Core  0.12.2.1
P2P Digital Currency
CKeePassIntegrator Class Reference

#include <keepass.h>

Classes

class  CKeePassEntry
 
class  CKeePassRequest
 
class  CKeePassResponse
 

Public Member Functions

 CKeePassIntegrator ()
 
void init ()
 
void rpcAssociate (std::string &strId, SecureString &sKeyBase64)
 
SecureString retrievePassphrase ()
 
void updatePassphrase (const SecureString &sWalletPassphrase)
 

Static Public Member Functions

static SecureString generateKeePassKey ()
 

Private Member Functions

void doHTTPPost (const std::string &strRequest, int &nStatus, std::string &strResponse)
 
void rpcTestAssociation (bool bTriggerUnlock)
 
std::vector< CKeePassEntryrpcGetLogins ()
 
void rpcSetLogin (const SecureString &sWalletPass, const SecureString &sEntryId)
 

Static Private Member Functions

static SecureString generateRandomKey (size_t nSize)
 
static std::string constructHTTPPost (const std::string &strMsg, const std::map< std::string, std::string > &mapRequestHeaders)
 

Private Attributes

bool bIsActive
 
unsigned int nPort
 
SecureString sKeyBase64
 
SecureString sKey
 
SecureString sUrl
 
std::string strKeePassId
 
std::string strKeePassEntryName
 

Static Private Attributes

static const int KEEPASS_CRYPTO_KEY_SIZE = 32
 
static const int KEEPASS_CRYPTO_BLOCK_SIZE = 16
 
static const int KEEPASS_HTTP_CONNECT_TIMEOUT = 30
 
static const char * KEEPASS_HTTP_HOST = "localhost"
 

Detailed Description

Definition at line 18 of file keepass.h.

Constructor & Destructor Documentation

◆ CKeePassIntegrator()

CKeePassIntegrator::CKeePassIntegrator ( )

Definition at line 93 of file keepass.cpp.

Member Function Documentation

◆ constructHTTPPost()

std::string CKeePassIntegrator::constructHTTPPost ( const std::string &  strMsg,
const std::map< std::string, std::string > &  mapRequestHeaders 
)
staticprivate

Definition at line 242 of file keepass.cpp.

◆ doHTTPPost()

void CKeePassIntegrator::doHTTPPost ( const std::string &  strRequest,
int &  nStatus,
std::string &  strResponse 
)
private

Definition at line 292 of file keepass.cpp.

Referenced by rpcAssociate(), rpcGetLogins(), rpcSetLogin(), and rpcTestAssociation().

◆ generateKeePassKey()

SecureString CKeePassIntegrator::generateKeePassKey ( )
static

Definition at line 533 of file keepass.cpp.

Referenced by keepass().

◆ generateRandomKey()

SecureString CKeePassIntegrator::generateRandomKey ( size_t  nSize)
staticprivate

◆ init()

void CKeePassIntegrator::init ( )

Definition at line 104 of file keepass.cpp.

Referenced by AppInit2().

◆ retrievePassphrase()

SecureString CKeePassIntegrator::retrievePassphrase ( )

Definition at line 579 of file keepass.cpp.

Referenced by CWallet::ChangeWalletPassphrase(), and CWallet::Unlock().

◆ rpcAssociate()

void CKeePassIntegrator::rpcAssociate ( std::string &  strId,
SecureString sKeyBase64 
)

Definition at line 540 of file keepass.cpp.

Referenced by keepass().

◆ rpcGetLogins()

std::vector< CKeePassIntegrator::CKeePassEntry > CKeePassIntegrator::rpcGetLogins ( )
private

Definition at line 440 of file keepass.cpp.

Referenced by retrievePassphrase(), and updatePassphrase().

◆ rpcSetLogin()

void CKeePassIntegrator::rpcSetLogin ( const SecureString sWalletPass,
const SecureString sEntryId 
)
private

Definition at line 484 of file keepass.cpp.

Referenced by updatePassphrase().

◆ rpcTestAssociation()

void CKeePassIntegrator::rpcTestAssociation ( bool  bTriggerUnlock)
private

Definition at line 427 of file keepass.cpp.

◆ updatePassphrase()

void CKeePassIntegrator::updatePassphrase ( const SecureString sWalletPassphrase)

Definition at line 613 of file keepass.cpp.

Referenced by CWallet::ChangeWalletPassphrase(), CWallet::EncryptWallet(), and keepass().

Member Data Documentation

◆ bIsActive

bool CKeePassIntegrator::bIsActive
private

Definition at line 25 of file keepass.h.

Referenced by CKeePassIntegrator(), and init().

◆ KEEPASS_CRYPTO_BLOCK_SIZE

const int CKeePassIntegrator::KEEPASS_CRYPTO_BLOCK_SIZE = 16
staticprivate

Definition at line 21 of file keepass.h.

Referenced by CKeePassIntegrator::CKeePassRequest::init().

◆ KEEPASS_CRYPTO_KEY_SIZE

const int CKeePassIntegrator::KEEPASS_CRYPTO_KEY_SIZE = 32
staticprivate

Definition at line 20 of file keepass.h.

Referenced by generateKeePassKey(), and rpcAssociate().

◆ KEEPASS_HTTP_CONNECT_TIMEOUT

const int CKeePassIntegrator::KEEPASS_HTTP_CONNECT_TIMEOUT = 30
staticprivate

Definition at line 22 of file keepass.h.

Referenced by doHTTPPost().

◆ KEEPASS_HTTP_HOST

const char * CKeePassIntegrator::KEEPASS_HTTP_HOST = "localhost"
staticprivate

Definition at line 23 of file keepass.h.

Referenced by doHTTPPost().

◆ nPort

unsigned int CKeePassIntegrator::nPort
private

Definition at line 26 of file keepass.h.

Referenced by CKeePassIntegrator(), and init().

◆ sKey

◆ sKeyBase64

SecureString CKeePassIntegrator::sKeyBase64
private

◆ strKeePassEntryName

std::string CKeePassIntegrator::strKeePassEntryName
private

Definition at line 32 of file keepass.h.

Referenced by init(), retrievePassphrase(), and updatePassphrase().

◆ strKeePassId

std::string CKeePassIntegrator::strKeePassId
private

Definition at line 31 of file keepass.h.

Referenced by init(), retrievePassphrase(), rpcGetLogins(), rpcSetLogin(), and updatePassphrase().

◆ sUrl

SecureString CKeePassIntegrator::sUrl
private

Definition at line 29 of file keepass.h.

Referenced by CKeePassIntegrator(), init(), rpcGetLogins(), and rpcSetLogin().


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