|
Open-Transactions
0.93.0-ge03d287
|
#include <OTKeypair.hpp>
Public Member Functions | |
| EXPORT bool | MakeNewKeypair (int32_t nBits=1024) |
| EXPORT bool | ReEncrypt (const OTPassword &theExportPassword, bool bImporting, OTString &strOutput) |
| EXPORT bool | HasPublicKey () |
| EXPORT bool | HasPrivateKey () |
| EXPORT const OTAsymmetricKey & | GetPublicKey () const |
| EXPORT const OTAsymmetricKey & | GetPrivateKey () const |
| EXPORT bool | CalculateID (OTIdentifier &theOutput) const |
| EXPORT bool | SaveCertToString (OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) const |
| EXPORT bool | SavePrivateKeyToString (OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) const |
| EXPORT bool | SaveCertAndPrivateKeyToString (OTString &strOutput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadPrivateKey (const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadPublicKey (const OTString &strFoldername, const OTString &strFilename) |
| EXPORT bool | LoadPrivateKeyFromCertString (const OTString &strCert, bool bEscaped=true, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadPublicKeyFromCertString (const OTString &strCert, bool bEscaped=true, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadPublicKeyFromCertFile (const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadCertAndPrivateKeyFromString (const OTString &strInput, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | LoadBothKeysFromCertFile (const OTString &strFoldername, const OTString &strFilename, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | SaveAndReloadBothKeysFromTempFile (OTString *pstrOutputCert=nullptr, const OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
| EXPORT bool | GetPublicKey (OTASCIIArmor &strKey) const |
| EXPORT bool | GetPublicKey (OTString &strKey, bool bEscaped=true) const |
| EXPORT bool | SetPublicKey (const OTASCIIArmor &strKey) |
| EXPORT bool | SetPublicKey (const OTString &strKey, bool bEscaped=false) |
| EXPORT bool | GetPrivateKey (OTString &strKey, bool bEscaped=true) const |
| EXPORT bool | GetPrivateKey (OTASCIIArmor &strKey) const |
| EXPORT bool | SetPrivateKey (const OTString &strKey, bool bEscaped=false) |
| EXPORT bool | SetPrivateKey (const OTASCIIArmor &strKey) |
| EXPORT bool | SignContract (OTContract &theContract, const OTPasswordData *pPWData=nullptr) |
| EXPORT void | SetMetadata (const OTSignatureMetadata &theMetadata) |
| EXPORT int32_t | GetPublicKeyBySignature (listOfAsymmetricKeys &listOutput, const OTSignature &theSignature, bool bInclusive=false) const |
| EXPORT | OTKeypair () |
| EXPORT | ~OTKeypair () |
Friends | |
| class | OTLowLevelKeyData |
Definition at line 192 of file OTKeypair.hpp.
| opentxs::OTKeypair::OTKeypair | ( | ) |
Definition at line 184 of file OTKeypair.cpp.
| opentxs::OTKeypair::~OTKeypair | ( | ) |
Definition at line 190 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::CalculateID | ( | OTIdentifier & | theOutput | ) | const |
Definition at line 643 of file OTKeypair.cpp.
| const OTAsymmetricKey & opentxs::OTKeypair::GetPrivateKey | ( | ) | const |
Definition at line 236 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::GetPrivateKey | ( | OTString & | strKey, |
| bool | bEscaped = true |
||
| ) | const |
Definition at line 568 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::GetPrivateKey | ( | OTASCIIArmor & | strKey | ) | const |
Definition at line 575 of file OTKeypair.cpp.
| const OTAsymmetricKey & opentxs::OTKeypair::GetPublicKey | ( | ) | const |
Definition at line 229 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::GetPublicKey | ( | OTASCIIArmor & | strKey | ) | const |
Definition at line 509 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::GetPublicKey | ( | OTString & | strKey, |
| bool | bEscaped = true |
||
| ) | const |
Definition at line 516 of file OTKeypair.cpp.
| int32_t opentxs::OTKeypair::GetPublicKeyBySignature | ( | listOfAsymmetricKeys & | listOutput, |
| const OTSignature & | theSignature, | ||
| bool | bInclusive = false |
||
| ) | const |
Definition at line 650 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::HasPrivateKey | ( | ) |
Definition at line 221 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::HasPublicKey | ( | ) |
Definition at line 213 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadBothKeysFromCertFile | ( | const OTString & | strFoldername, |
| const OTString & | strFilename, | ||
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 456 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadCertAndPrivateKeyFromString | ( | const OTString & | strInput, |
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 294 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadPrivateKey | ( | const OTString & | strFoldername, |
| const OTString & | strFilename, | ||
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 373 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadPrivateKeyFromCertString | ( | const OTString & | strCert, |
| bool | bEscaped = true, |
||
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 396 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadPublicKey | ( | const OTString & | strFoldername, |
| const OTString & | strFilename | ||
| ) |
Definition at line 384 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadPublicKeyFromCertFile | ( | const OTString & | strFoldername, |
| const OTString & | strFilename, | ||
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 419 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::LoadPublicKeyFromCertString | ( | const OTString & | strCert, |
| bool | bEscaped = true, |
||
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 409 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::MakeNewKeypair | ( | int32_t | nBits = 1024 | ) |
Definition at line 430 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::ReEncrypt | ( | const OTPassword & | theExportPassword, |
| bool | bImporting, | ||
| OTString & | strOutput | ||
| ) |
Definition at line 692 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SaveAndReloadBothKeysFromTempFile | ( | OTString * | pstrOutputCert = nullptr, |
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 333 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SaveCertAndPrivateKeyToString | ( | OTString & | strOutput, |
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) |
Definition at line 277 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SaveCertToString | ( | OTString & | strOutput, |
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) | const |
Definition at line 243 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SavePrivateKeyToString | ( | OTString & | strOutput, |
| const OTString * | pstrReason = nullptr, |
||
| const OTPassword * | pImportPassword = nullptr |
||
| ) | const |
Definition at line 261 of file OTKeypair.cpp.
| void opentxs::OTKeypair::SetMetadata | ( | const OTSignatureMetadata & | theMetadata | ) |
Definition at line 200 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SetPrivateKey | ( | const OTString & | strKey, |
| bool | bEscaped = false |
||
| ) |
Definition at line 588 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SetPrivateKey | ( | const OTASCIIArmor & | strKey | ) |
Definition at line 630 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SetPublicKey | ( | const OTASCIIArmor & | strKey | ) |
Definition at line 526 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SetPublicKey | ( | const OTString & | strKey, |
| bool | bEscaped = false |
||
| ) |
Definition at line 538 of file OTKeypair.cpp.
| bool opentxs::OTKeypair::SignContract | ( | OTContract & | theContract, |
| const OTPasswordData * | pPWData = nullptr |
||
| ) |
Definition at line 494 of file OTKeypair.cpp.
|
friend |
Definition at line 194 of file OTKeypair.hpp.