133 #ifndef OPENTXS_CORE_CRYPTO_OTNYMORSYMMETRICKEY_HPP
134 #define OPENTXS_CORE_CRYPTO_OTNYMORSYMMETRICKEY_HPP
144 class OTSymmetricKey;
164 bool m_bCleanupPassword;
186 return (
nullptr != m_pNym);
190 return (
nullptr != m_pKey);
194 return (
nullptr != m_pPassword);
208 const OTString* pstrDisplay =
nullptr);
211 const OTString* pstrDisplay =
nullptr);
218 const OTString* pstrDisplay =
nullptr);
220 const OTString* pstrDisplay =
nullptr);
223 const OTString* pstrDisplay =
nullptr);
238 #endif // OPENTXS_CORE_CRYPTO_OTNYMORSYMMETRICKEY_HPP
EXPORT OTPseudonym * GetNym() const
EXPORT ~OTNym_or_SymmetricKey()
EXPORT void Release_Nym_or_SymmetricKey()
EXPORT OTNym_or_SymmetricKey & operator=(OTNym_or_SymmetricKey other)
EXPORT bool Seal_or_Encrypt(OTEnvelope &outputEnvelope, const OTString &strInput, const OTString *pstrDisplay=nullptr)
EXPORT OTSymmetricKey * GetKey() const
EXPORT void swap(OTNym_or_SymmetricKey &other)
EXPORT void GetIdentifier(OTIdentifier &theIdentifier) const
EXPORT OTPassword * GetPassword() const
EXPORT bool IsNym() const
EXPORT bool CompareID(const OTNym_or_SymmetricKey &rhs) const
EXPORT bool HasPassword() const
EXPORT bool IsKey() const
EXPORT bool Open_or_Decrypt(const OTEnvelope &inputEnvelope, OTString &strOutput, const OTString *pstrDisplay=nullptr)