Some code formating
This commit is contained in:
122
include/user.h
122
include/user.h
@@ -30,7 +30,7 @@
|
||||
namespace gourou
|
||||
{
|
||||
class DRMProcessor;
|
||||
|
||||
|
||||
/**
|
||||
* @brief This class is a container for activation.xml (activation info). It should not be used by user.
|
||||
*/
|
||||
@@ -39,73 +39,73 @@ namespace gourou
|
||||
public:
|
||||
User(DRMProcessor* processor, const std::string& activationFile);
|
||||
|
||||
/**
|
||||
* @brief Retrieve some values from activation.xml
|
||||
*/
|
||||
std::string& getUUID();
|
||||
std::string& getPKCS12();
|
||||
std::string& getDeviceUUID();
|
||||
std::string& getDeviceFingerprint();
|
||||
std::string& getUsername();
|
||||
std::string& getLoginMethod();
|
||||
std::string getLicenseServiceCertificate(std::string url);
|
||||
std::string& getAuthenticationCertificate();
|
||||
std::string& getPrivateLicenseKey();
|
||||
/**
|
||||
* @brief Retrieve some values from activation.xml
|
||||
*/
|
||||
std::string& getUUID();
|
||||
std::string& getPKCS12();
|
||||
std::string& getDeviceUUID();
|
||||
std::string& getDeviceFingerprint();
|
||||
std::string& getUsername();
|
||||
std::string& getLoginMethod();
|
||||
std::string getLicenseServiceCertificate(std::string url);
|
||||
std::string& getAuthenticationCertificate();
|
||||
std::string& getPrivateLicenseKey();
|
||||
|
||||
/**
|
||||
* @brief Read activation.xml and put result into doc
|
||||
*/
|
||||
void readActivation(pugi::xml_document& doc);
|
||||
/**
|
||||
* @brief Read activation.xml and put result into doc
|
||||
*/
|
||||
void readActivation(pugi::xml_document& doc);
|
||||
|
||||
/**
|
||||
* @brief Update activation.xml with new data
|
||||
*/
|
||||
void updateActivationFile(const char* data);
|
||||
/**
|
||||
* @brief Update activation.xml with new data
|
||||
*/
|
||||
void updateActivationFile(const char* data);
|
||||
|
||||
/**
|
||||
* @brief Update activation.xml with doc data
|
||||
*/
|
||||
void updateActivationFile(const pugi::xml_document& doc);
|
||||
/**
|
||||
* @brief Update activation.xml with doc data
|
||||
*/
|
||||
void updateActivationFile(const pugi::xml_document& doc);
|
||||
|
||||
/**
|
||||
* @brief Get one value of activation.xml
|
||||
*/
|
||||
std::string getProperty(const std::string property);
|
||||
|
||||
/**
|
||||
* @brief Get all nodes with property name
|
||||
*/
|
||||
pugi::xpath_node_set getProperties(const std::string property);
|
||||
|
||||
/**
|
||||
* @brief Create activation.xml and devicesalt files if they did not exists
|
||||
*
|
||||
* @param processor Instance of DRMProcessor
|
||||
* @param dirName Directory where to put files (.adept)
|
||||
* @param ACSServer Server used for signIn
|
||||
*/
|
||||
static User* createUser(DRMProcessor* processor, const std::string& dirName, const std::string& ACSServer);
|
||||
/**
|
||||
* @brief Get one value of activation.xml
|
||||
*/
|
||||
std::string getProperty(const std::string property);
|
||||
|
||||
/**
|
||||
* @brief Get all nodes with property name
|
||||
*/
|
||||
pugi::xpath_node_set getProperties(const std::string property);
|
||||
|
||||
/**
|
||||
* @brief Create activation.xml and devicesalt files if they did not exists
|
||||
*
|
||||
* @param processor Instance of DRMProcessor
|
||||
* @param dirName Directory where to put files (.adept)
|
||||
* @param ACSServer Server used for signIn
|
||||
*/
|
||||
static User* createUser(DRMProcessor* processor, const std::string& dirName, const std::string& ACSServer);
|
||||
|
||||
private:
|
||||
DRMProcessor* processor;
|
||||
pugi::xml_document activationDoc;
|
||||
|
||||
std::string activationFile;
|
||||
std::string pkcs12;
|
||||
std::string uuid;
|
||||
std::string deviceUUID;
|
||||
std::string deviceFingerprint;
|
||||
std::string username;
|
||||
std::string loginMethod;
|
||||
std::map<std::string,std::string> licenseServiceCertificates;
|
||||
std::string authenticationCertificate;
|
||||
std::string privateLicenseKey;
|
||||
DRMProcessor* processor;
|
||||
pugi::xml_document activationDoc;
|
||||
|
||||
User(DRMProcessor* processor);
|
||||
|
||||
void parseActivationFile(bool throwOnNull=true);
|
||||
ByteArray signIn(const std::string& adobeID, const std::string& adobePassword,
|
||||
ByteArray authenticationCertificate);
|
||||
std::string activationFile;
|
||||
std::string pkcs12;
|
||||
std::string uuid;
|
||||
std::string deviceUUID;
|
||||
std::string deviceFingerprint;
|
||||
std::string username;
|
||||
std::string loginMethod;
|
||||
std::map<std::string,std::string> licenseServiceCertificates;
|
||||
std::string authenticationCertificate;
|
||||
std::string privateLicenseKey;
|
||||
|
||||
User(DRMProcessor* processor);
|
||||
|
||||
void parseActivationFile(bool throwOnNull=true);
|
||||
ByteArray signIn(const std::string& adobeID, const std::string& adobePassword,
|
||||
ByteArray authenticationCertificate);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user