133 #ifndef OPENTXS_CORE_CRYPTO_OTCREDENTIAL_HPP
134 #define OPENTXS_CORE_CRYPTO_OTCREDENTIAL_HPP
137 #include "../OTString.hpp"
180 class OTPasswordData;
181 class OTSubcredential;
246 void SetSourceForNymID(
const OTString& strSourceForNymID);
256 void SetMasterCredID(
const OTString& strID);
259 bool GenerateMasterkey(int32_t nBits = 1024);
275 return m_pImportPassword;
279 m_pImportPassword = pImportPassword;
283 int32_t nBits = 1024,
311 int32_t nBits = 1024,
367 bool bShowRevoked =
false,
368 bool bValid =
true)
const;
377 char cKeyType =
'0')
const;
405 #endif // OPENTXS_CORE_CRYPTO_OTCREDENTIAL_HPP
std::map< std::string, std::string > Map
EXPORT const OTAsymmetricKey & GetPublicSignKey(const OTString::List *plistRevokedIDs=nullptr) const
std::list< OTAsymmetricKey * > listOfAsymmetricKeys
EXPORT const OTSubcredential * GetSubcredential(const OTString &strSubID, const OTString::List *plistRevokedIDs=nullptr) const
EXPORT const OTString & GetNymID() const
EXPORT bool LoadSubcredentialFromString(const OTString &strInput, const OTString &strSubID, const OTPassword *pImportPassword=nullptr)
EXPORT bool LoadSubcredential(const OTString &strSubID)
EXPORT const OTAsymmetricKey & GetPrivateAuthKey(const OTString::List *plistRevokedIDs=nullptr) const
EXPORT bool AddNewSubkey(int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTPasswordData *pPWData=nullptr, OTSubkey **ppSubkey=nullptr)
EXPORT bool Load_MasterFromString(const OTString &strInput, const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT const OTKeypair & GetEncrKeypair(const OTString::List *plistRevokedIDs=nullptr) const
EXPORT void ClearSubcredentials()
EXPORT const OTKeypair & GetSignKeypair(const OTString::List *plistRevokedIDs=nullptr) const
static OTCredential * CreateMaster(const OTString &strSourceForNymID, int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTString::Map *pmapPublic=nullptr, const OTPasswordData *pPWData=nullptr)
EXPORT bool ReEncryptPrivateCredentials(const OTPassword &theExportPassword, bool bImporting)
static OTCredential * LoadMaster(const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr)
EXPORT bool AddNewSubcredential(const OTString::Map &mapPrivate, const OTString::Map &mapPublic, const OTPasswordData *pPWData=nullptr, OTSubcredential **ppSubcred=nullptr)
std::map< std::string, OTSubcredential * > mapOfSubcredentials
EXPORT const OTString & GetPriCredential() const
EXPORT const OTString & GetMasterCredID() const
EXPORT bool LoadSubkeyFromString(const OTString &strInput, const OTString &strSubID, const OTPassword *pImportPassword=nullptr)
static OTCredential * LoadMasterFromString(const OTString &strInput, const OTString &strNymID, const OTString &strMasterCredID, OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT const OTKeypair & GetAuthKeypair(const OTString::List *plistRevokedIDs=nullptr) const
EXPORT const OTString & GetPubCredential() const
EXPORT const OTAsymmetricKey & GetPublicAuthKey(const OTString::List *plistRevokedIDs=nullptr) const
std::list< std::string > List
EXPORT size_t GetSubcredentialCount() const
EXPORT void SetImportPassword(const OTPassword *pImportPassword)
EXPORT bool Load_Master(const OTString &strNymID, const OTString &strMasterCredID, const OTPasswordData *pPWData=nullptr)
EXPORT const OTAsymmetricKey & GetPublicEncrKey(const OTString::List *plistRevokedIDs=nullptr) const
EXPORT const OTString & GetSourceForNymID() const
EXPORT const OTPassword * GetImportPassword() const
EXPORT const OTMasterkey & GetMasterkey() const
EXPORT bool LoadSubkey(const OTString &strSubID)
EXPORT const OTSubcredential * GetSubcredentialByIndex(int32_t nIndex) const
EXPORT const OTAsymmetricKey & GetPrivateEncrKey(const OTString::List *plistRevokedIDs=nullptr) const
EXPORT const OTAsymmetricKey & GetPrivateSignKey(const OTString::List *plistRevokedIDs=nullptr) 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 VerifyAgainstSource() const
EXPORT bool VerifyInternally() const
EXPORT const std::string GetSubcredentialIDByIndex(size_t nIndex) const
EXPORT int32_t GetPublicKeysBySignature(listOfAsymmetricKeys &listOutput, const OTSignature &theSignature, char cKeyType= '0') const