Open-Transactions
0.93.0-ge03d287
|
#include <OTSubcredential.hpp>
Public Member Functions | |
const OTString::Map & | GetPublicMap () const |
const OTString::Map & | GetPrivateMap () const |
const OTString & | GetMasterCredID () const |
const OTString & | GetNymID () const |
const OTString & | GetNymIDSource () const |
const OTString & | GetContents () const |
EXPORT const OTString & | GetPubCredential () const |
const OTString & | GetPriCredential () const |
const OTString & | GetMasterSigned () const |
virtual bool | VerifyInternally () |
virtual EXPORT void | CalculateContractID (OTIdentifier &newID) const |
virtual bool | VerifyContract () |
bool | VerifyNymID () const |
virtual bool | VerifySignedByMaster () |
void | SetOwner (OTCredential &theOwner) |
virtual void | SetMetadata () |
OTSubcredential () | |
OTSubcredential (OTCredential &theOwner) | |
virtual | ~OTSubcredential () |
virtual void | Release () |
void | Release_Subcredential () |
virtual void | UpdateContents () |
virtual int32_t | ProcessXMLNode (irr::io::IrrXMLReader *&xml) |
virtual bool | SaveContractWallet (std::ofstream &) const |
Public Member Functions inherited from opentxs::OTContract | |
const char * | GetHashType () const |
void | SetIdentifier (const OTIdentifier &theID) |
EXPORT | OTContract () |
EXPORT | OTContract (const OTString &name, const OTString &foldername, const OTString &filename, const OTString &strID) |
EXPORT | OTContract (const OTString &strID) |
EXPORT | OTContract (const OTIdentifier &theID) |
void | Initialize () |
virtual EXPORT | ~OTContract () |
EXPORT void | Release_Contract () |
EXPORT void | ReleaseSignatures () |
virtual EXPORT bool | CreateContract (const OTString &strContract, const OTPseudonym &theSigner) |
EXPORT bool | InsertNym (const OTString &strKeyName, const OTString &strKeyValue) |
EXPORT void | GetName (OTString &strName) const |
EXPORT void | SetName (const OTString &strName) |
virtual EXPORT void | GetIdentifier (OTIdentifier &theIdentifier) const |
virtual EXPORT void | GetIdentifier (OTString &theIdentifier) const |
EXPORT void | GetFilename (OTString &strFilename) const |
EXPORT void | GetFoldername (OTString &strFoldername) const |
virtual EXPORT bool | LoadContract () |
EXPORT bool | LoadContract (const char *szFoldername, const char *szFilename) |
EXPORT bool | LoadContractFromString (const OTString &theStr) |
bool | LoadContractRawFile () |
EXPORT bool | ParseRawFile () |
EXPORT bool | SaveToContractFolder () |
EXPORT bool | SaveContractRaw (OTString &strOutput) const |
EXPORT bool | RewriteContract (OTString &strOutput) const |
EXPORT bool | SaveContract () |
EXPORT bool | SaveContract (const char *szFoldername, const char *szFilename) |
virtual EXPORT void | CreateContents () |
EXPORT void | CreateInnerContents () |
virtual EXPORT bool | SaveContents (std::ofstream &ofs) const |
virtual EXPORT bool | SaveContractWallet (OTString &strContents) const |
virtual EXPORT bool | DisplayStatistics (OTString &strContents) const |
virtual EXPORT bool | SaveContents (OTString &strContents) const |
virtual EXPORT bool | SignContract (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContractAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContractAuthent (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const OTAsymmetricKey &theKey, OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const char *szFoldername, const char *szFilename, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
virtual EXPORT bool | VerifyContractID () const |
virtual EXPORT bool | VerifySignature (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const |
virtual EXPORT bool | VerifySigAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifyWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySigAuthent (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const OTAsymmetricKey &theKey, const OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const char *szFoldername, const char *szFilename, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT const OTAsymmetricKey * | GetContractPublicKey () const |
EXPORT const OTPseudonym * | GetContractPublicNym () const |
Protected Types | |
enum | CredStoreAs { credPrivateInfo, credPublicInfo = 1, credMasterSigned = 2 } |
Protected Member Functions | |
void | UpdateMasterPublicToString (OTString &strAppendTo) |
void | UpdatePublicContentsToString (OTString &strAppendTo) |
void | UpdatePublicCredentialToString (OTString &strAppendTo) |
void | UpdatePrivateContentsToString (OTString &strAppendTo) |
void | SetMasterSigned (const OTString &strMasterSigned) |
void | SetContents (const OTString &strContents) |
void | SetNymIDandSource (const OTString &strNymID, const OTString &strSourceForNymID) |
void | SetMasterCredID (const OTString &strMasterCredID) |
void | StoreAsMasterSigned () |
void | StoreAsPublic () |
virtual bool | SetPublicContents (const OTString::Map &mapPublic) |
virtual bool | SetPrivateContents (const OTString::Map &mapPrivate, const OTPassword *pImportPassword=nullptr) |
Protected Member Functions inherited from opentxs::OTContract | |
bool | LoadContractXML () |
Friends | |
class | OTCredential |
Additional Inherited Members | |
Static Public Member Functions inherited from opentxs::OTContract | |
static EXPORT bool | DearmorAndTrim (const OTString &strInput, OTString &strOutput, OTString &strFirstLine) |
static bool | AddBookendsAroundContent (OTString &strOutput, const OTString &strContents, const OTString &strContractType, const OTString &strHashType, const listOfSignatures &listSignatures) |
static EXPORT bool | LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput) |
static EXPORT bool | LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTString &strOutput) |
static bool | LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr) |
static bool | LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTString &strOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr) |
static bool | SkipToElement (irr::io::IrrXMLReader *&xml) |
static bool | SkipToTextField (irr::io::IrrXMLReader *&xml) |
static bool | SkipAfterLoadingField (irr::io::IrrXMLReader *&xml) |
static EXPORT bool | SignFlatText (OTString &strFlatText, const OTString &strContractType, const OTPseudonym &theSigner, OTString &strOutput) |
Definition at line 185 of file OTSubcredential.hpp.
|
protected |
Enumerator | |
---|---|
credPrivateInfo | |
credPublicInfo | |
credMasterSigned |
Definition at line 192 of file OTSubcredential.hpp.
opentxs::OTSubcredential::OTSubcredential | ( | ) |
Definition at line 171 of file OTSubcredential.cpp.
opentxs::OTSubcredential::OTSubcredential | ( | OTCredential & | theOwner | ) |
Definition at line 179 of file OTSubcredential.cpp.
|
virtual |
Definition at line 187 of file OTSubcredential.cpp.
|
virtual |
Reimplemented from opentxs::OTContract.
Definition at line 759 of file OTSubcredential.cpp.
|
inline |
Definition at line 292 of file OTSubcredential.hpp.
|
inline |
Definition at line 280 of file OTSubcredential.hpp.
|
inline |
Definition at line 304 of file OTSubcredential.hpp.
|
inline |
Definition at line 284 of file OTSubcredential.hpp.
|
inline |
Definition at line 288 of file OTSubcredential.hpp.
const OTString & opentxs::OTSubcredential::GetPriCredential | ( | ) | const |
Definition at line 766 of file OTSubcredential.cpp.
|
inline |
Definition at line 276 of file OTSubcredential.hpp.
const OTString & opentxs::OTSubcredential::GetPubCredential | ( | ) | const |
Definition at line 779 of file OTSubcredential.cpp.
|
inline |
Definition at line 272 of file OTSubcredential.hpp.
|
virtual |
Reimplemented from opentxs::OTContract.
Reimplemented in opentxs::OTMasterkey, and opentxs::OTSubkey.
Definition at line 344 of file OTSubcredential.cpp.
|
virtual |
Reimplemented from opentxs::OTContract.
Reimplemented in opentxs::OTKeyCredential.
Definition at line 193 of file OTSubcredential.cpp.
void opentxs::OTSubcredential::Release_Subcredential | ( | ) |
Definition at line 202 of file OTSubcredential.cpp.
|
virtual |
Implements opentxs::OTContract.
Definition at line 629 of file OTSubcredential.cpp.
|
inlineprotected |
Definition at line 239 of file OTSubcredential.hpp.
|
protected |
Definition at line 226 of file OTSubcredential.cpp.
|
inlineprotected |
Definition at line 235 of file OTSubcredential.hpp.
|
inlinevirtual |
Reimplemented in opentxs::OTKeyCredential.
Definition at line 368 of file OTSubcredential.hpp.
|
protected |
Definition at line 231 of file OTSubcredential.cpp.
void opentxs::OTSubcredential::SetOwner | ( | OTCredential & | theOwner | ) |
Definition at line 166 of file OTSubcredential.cpp.
|
protectedvirtual |
Reimplemented in opentxs::OTKeyCredential.
Definition at line 215 of file OTSubcredential.cpp.
|
protectedvirtual |
Reimplemented in opentxs::OTKeyCredential.
Definition at line 208 of file OTSubcredential.cpp.
|
inlineprotected |
Definition at line 256 of file OTSubcredential.hpp.
|
inlineprotected |
Definition at line 260 of file OTSubcredential.hpp.
|
virtual |
Reimplemented from opentxs::OTContract.
Reimplemented in opentxs::OTMasterkey, and opentxs::OTSubkey.
Definition at line 296 of file OTSubcredential.cpp.
|
protected |
Definition at line 238 of file OTSubcredential.cpp.
|
protected |
Definition at line 278 of file OTSubcredential.cpp.
|
protected |
Definition at line 247 of file OTSubcredential.cpp.
|
protected |
Definition at line 266 of file OTSubcredential.cpp.
|
virtual |
Reimplemented from opentxs::OTContract.
Definition at line 744 of file OTSubcredential.cpp.
|
virtual |
Reimplemented in opentxs::OTKeyCredential, and opentxs::OTMasterkey.
Definition at line 666 of file OTSubcredential.cpp.
bool opentxs::OTSubcredential::VerifyNymID | ( | ) | const |
Definition at line 638 of file OTSubcredential.cpp.
|
virtual |
Reimplemented in opentxs::OTSubkey.
Definition at line 738 of file OTSubcredential.cpp.
|
friend |
Definition at line 189 of file OTSubcredential.hpp.
|
protected |
Definition at line 216 of file OTSubcredential.hpp.
|
protected |
Definition at line 212 of file OTSubcredential.hpp.
|
protected |
Definition at line 204 of file OTSubcredential.hpp.
|
protected |
Definition at line 202 of file OTSubcredential.hpp.
|
protected |
Definition at line 224 of file OTSubcredential.hpp.
|
protected |
Definition at line 205 of file OTSubcredential.hpp.
|
protected |
Definition at line 220 of file OTSubcredential.hpp.
|
protected |
Definition at line 209 of file OTSubcredential.hpp.
|
protected |
Definition at line 211 of file OTSubcredential.hpp.