Represents a license.xml file that can enable additional features. More...
Public Types | |
|
typedef boost::shared_ptr < License > | SharedPtr |
Public Member Functions | |
| License () | |
| License (const LicenseData &a_data, const std::string &a_privateKey, const std::string &a_signatureIndex) | |
| ~License () | |
| Dtor. | |
| bool | loadData (const std::string &a_fileName) |
| Loads the license data from the given XML file. | |
| bool | writeFileData (const std::string &a_fileName) |
| Writes license data into the XML file. | |
| bool | writeData (std::string &a_output) |
| Writes license data into the console output. | |
| bool | isValidSignature (const std::string &a_publicKey) |
| Returns true if the license has valid signature. | |
| bool | isValid (const std::string &a_publicKey) |
| Returns true if the license is valid. | |
| const LicenseData & | getLicenseData () |
| Returns the license data associated with this license. | |
| const SignatureData & | getSignatureData () |
| Returns the signature data associated with this license. | |
Represents a license.xml file that can enable additional features.
| Tonido::Misc::License::License | ( | ) |
Ctor
Details if needed
| Tonido::Misc::License::~License | ( | ) |
Dtor.
Details if needed
| const Tonido::Misc::License::LicenseData & Tonido::Misc::License::getLicenseData | ( | ) |
Returns the license data associated with this license.
| const Tonido::Misc::License::SignatureData & Tonido::Misc::License::getSignatureData | ( | ) |
Returns the signature data associated with this license.
| bool Tonido::Misc::License::isValid | ( | const std::string & | a_publicKey | ) |
Returns true if the license is valid.
| bool Tonido::Misc::License::isValidSignature | ( | const std::string & | a_publicKey | ) |
Returns true if the license has valid signature.
| bool Tonido::Misc::License::loadData | ( | const std::string & | a_fileName | ) |
Loads the license data from the given XML file.
| [in] | a_fileName | Name of the file to load data from |
| bool Tonido::Misc::License::writeData | ( | std::string & | a_output | ) |
Writes license data into the console output.
| bool Tonido::Misc::License::writeFileData | ( | const std::string & | a_fileName | ) |
Writes license data into the XML file.
| [in] | a_fileName | Name of the file to load data from |