Open-Transactions
0.93.0-ge03d287
|
#include <OTCredential.hpp>
Public Member Functions | |
EXPORT const OTPassword * | GetImportPassword () const |
EXPORT void | SetImportPassword (const OTPassword *pImportPassword) |
EXPORT bool | Load_Master (const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | Load_MasterFromString (const OTString &strInput, const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | AddNewSubkey (int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTPasswordData *pPWData=nullptr, OTSubkey **ppSubkey=nullptr) |
EXPORT bool | AddNewSubcredential (const OTString::Map &mapPrivate, const OTString::Map &mapPublic, const OTPasswordData *pPWData=nullptr, OTSubcredential **ppSubcred=nullptr) |
EXPORT bool | ReEncryptPrivateCredentials (const OTPassword &theExportPassword, bool bImporting) |
EXPORT bool | LoadSubkey (const OTString &strSubID) |
EXPORT bool | LoadSubcredential (const OTString &strSubID) |
EXPORT bool | LoadSubkeyFromString (const OTString &strInput, const OTString &strSubID, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | LoadSubcredentialFromString (const OTString &strInput, const OTString &strSubID, const OTPassword *pImportPassword=nullptr) |
EXPORT size_t | GetSubcredentialCount () const |
EXPORT const OTSubcredential * | GetSubcredential (const OTString &strSubID, const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTSubcredential * | GetSubcredentialByIndex (int32_t nIndex) const |
EXPORT const std::string | GetSubcredentialIDByIndex (size_t nIndex) const |
EXPORT const OTString & | GetPubCredential () const |
EXPORT const OTString & | GetPriCredential () const |
EXPORT const OTString & | GetMasterCredID () const |
EXPORT const OTString & | GetNymID () const |
EXPORT const OTString & | GetSourceForNymID () const |
EXPORT void | SerializeIDs (OTString &strOutput, const OTString::List &listRevokedIDs, OTString::Map *pmapPubInfo=nullptr, OTString::Map *pmapPriInfo=nullptr, bool bShowRevoked=false, bool bValid=true) const |
EXPORT bool | VerifyInternally () const |
EXPORT bool | VerifyAgainstSource () const |
EXPORT const OTMasterkey & | GetMasterkey () const |
EXPORT int32_t | GetPublicKeysBySignature (listOfAsymmetricKeys &listOutput, const OTSignature &theSignature, char cKeyType= '0') const |
EXPORT const OTAsymmetricKey & | GetPublicAuthKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTAsymmetricKey & | GetPublicEncrKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTAsymmetricKey & | GetPublicSignKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTAsymmetricKey & | GetPrivateSignKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTAsymmetricKey & | GetPrivateEncrKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTAsymmetricKey & | GetPrivateAuthKey (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTKeypair & | GetAuthKeypair (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTKeypair & | GetEncrKeypair (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT const OTKeypair & | GetSignKeypair (const OTString::List *plistRevokedIDs=nullptr) const |
EXPORT void | ClearSubcredentials () |
EXPORT | ~OTCredential () |
Static Public Member Functions | |
static OTCredential * | CreateMaster (const OTString &strSourceForNymID, int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTString::Map *pmapPublic=nullptr, const OTPasswordData *pPWData=nullptr) |
static OTCredential * | LoadMaster (const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr) |
static OTCredential * | LoadMasterFromString (const OTString &strInput, const OTString &strNymID, const OTString &strMasterCredID, OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
Definition at line 217 of file OTCredential.hpp.
opentxs::OTCredential::~OTCredential | ( | ) |
Definition at line 1523 of file OTCredential.cpp.
bool opentxs::OTCredential::AddNewSubcredential | ( | const OTString::Map & | mapPrivate, |
const OTString::Map & | mapPublic, | ||
const OTPasswordData * | pPWData = nullptr , |
||
OTSubcredential ** | ppSubcred = nullptr |
||
) |
Definition at line 1110 of file OTCredential.cpp.
bool opentxs::OTCredential::AddNewSubkey | ( | int32_t | nBits = 1024 , |
const OTString::Map * | pmapPrivate = nullptr , |
||
const OTPasswordData * | pPWData = nullptr , |
||
OTSubkey ** | ppSubkey = nullptr |
||
) |
Definition at line 1026 of file OTCredential.cpp.
void opentxs::OTCredential::ClearSubcredentials | ( | ) |
Definition at line 1528 of file OTCredential.cpp.
|
static |
Definition at line 1183 of file OTCredential.cpp.
const OTKeypair & opentxs::OTCredential::GetAuthKeypair | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1369 of file OTCredential.cpp.
const OTKeypair & opentxs::OTCredential::GetEncrKeypair | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1406 of file OTCredential.cpp.
|
inline |
Definition at line 273 of file OTCredential.hpp.
const OTString & opentxs::OTCredential::GetMasterCredID | ( | ) | const |
Definition at line 343 of file OTCredential.cpp.
|
inline |
Definition at line 371 of file OTCredential.hpp.
const OTString & opentxs::OTCredential::GetNymID | ( | ) | const |
Definition at line 278 of file OTCredential.cpp.
const OTString & opentxs::OTCredential::GetPriCredential | ( | ) | const |
Definition at line 316 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPrivateAuthKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1505 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPrivateEncrKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1511 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPrivateSignKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1517 of file OTCredential.cpp.
const OTString & opentxs::OTCredential::GetPubCredential | ( | ) | const |
Definition at line 311 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPublicAuthKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1487 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPublicEncrKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1493 of file OTCredential.cpp.
int32_t opentxs::OTCredential::GetPublicKeysBySignature | ( | listOfAsymmetricKeys & | listOutput, |
const OTSignature & | theSignature, | ||
char | cKeyType = '0' |
||
) | const |
Definition at line 172 of file OTCredential.cpp.
const OTAsymmetricKey & opentxs::OTCredential::GetPublicSignKey | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1499 of file OTCredential.cpp.
const OTKeypair & opentxs::OTCredential::GetSignKeypair | ( | const OTString::List * | plistRevokedIDs = nullptr | ) | const |
Definition at line 1443 of file OTCredential.cpp.
const OTString & opentxs::OTCredential::GetSourceForNymID | ( | ) | const |
Definition at line 283 of file OTCredential.cpp.
const OTSubcredential * opentxs::OTCredential::GetSubcredential | ( | const OTString & | strSubID, |
const OTString::List * | plistRevokedIDs = nullptr |
||
) | const |
Definition at line 1300 of file OTCredential.cpp.
const OTSubcredential * opentxs::OTCredential::GetSubcredentialByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 1324 of file OTCredential.cpp.
size_t opentxs::OTCredential::GetSubcredentialCount | ( | ) | const |
Definition at line 1295 of file OTCredential.cpp.
const std::string opentxs::OTCredential::GetSubcredentialIDByIndex | ( | size_t | nIndex | ) | const |
Definition at line 1347 of file OTCredential.cpp.
bool opentxs::OTCredential::Load_Master | ( | const OTString & | strNymID, |
const OTString & | strMasterCredID, | ||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 806 of file OTCredential.cpp.
bool opentxs::OTCredential::Load_MasterFromString | ( | const OTString & | strInput, |
const OTString & | strNymID, | ||
const OTString & | strMasterCredID, | ||
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 758 of file OTCredential.cpp.
|
static |
Definition at line 349 of file OTCredential.cpp.
|
static |
Definition at line 371 of file OTCredential.cpp.
bool opentxs::OTCredential::LoadSubcredential | ( | const OTString & | strSubID | ) |
Definition at line 985 of file OTCredential.cpp.
bool opentxs::OTCredential::LoadSubcredentialFromString | ( | const OTString & | strInput, |
const OTString & | strSubID, | ||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 937 of file OTCredential.cpp.
bool opentxs::OTCredential::LoadSubkey | ( | const OTString & | strSubID | ) |
Definition at line 898 of file OTCredential.cpp.
bool opentxs::OTCredential::LoadSubkeyFromString | ( | const OTString & | strInput, |
const OTString & | strSubID, | ||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 849 of file OTCredential.cpp.
bool opentxs::OTCredential::ReEncryptPrivateCredentials | ( | const OTPassword & | theExportPassword, |
bool | bImporting | ||
) |
Definition at line 489 of file OTCredential.cpp.
void opentxs::OTCredential::SerializeIDs | ( | OTString & | strOutput, |
const OTString::List & | listRevokedIDs, | ||
OTString::Map * | pmapPubInfo = nullptr , |
||
OTString::Map * | pmapPriInfo = nullptr , |
||
bool | bShowRevoked = false , |
||
bool | bValid = true |
||
) | const |
Definition at line 1553 of file OTCredential.cpp.
|
inline |
Definition at line 277 of file OTCredential.hpp.
bool opentxs::OTCredential::VerifyAgainstSource | ( | ) | const |
Definition at line 242 of file OTCredential.cpp.
bool opentxs::OTCredential::VerifyInternally | ( | ) | const |
Definition at line 193 of file OTCredential.cpp.