zdk.net
|
Handles the Activation process of the ZDK. More...
#include <Activation.h>
Public Member Functions | |
Activation (ZDK::Shared::Activation src) | |
ZDK_NET::Result ^ | Start (System::String^ certCacheFile, System::String^ moduleName, int opFlags, System::String^ username, System::String^ password, System::String^ version, System::String^ certPem) |
Starts activation process. More... | |
ZDK_NET::Result ^ | StartSDK (System::String^ certCacheFile, System::String^ username, System::String^ password) |
Starts activation for an SDK product. More... | |
bool | CheckPermission (ZDK_NET::PermissionType value) |
Gets whether a given ZDK functionality is enabled and can be used. More... | |
bool | CheckCodecPermission (ZDK_NET::AudioVideoCodecs value) |
Gets whether a given media (audio/video) codec is enabled and can be used. More... | |
bool | CheckHostname (System::String^ value) |
Gets whether a given hostname (domain) is allowed to be used. More... | |
ZDK_NET::Result ^ | CreateOfflineActivationFile (System::String^ activationFile, System::String^ username, System::String^ password, System::String^ hddSerial, System::String^ version, System::String^ pcUser, System::String^ pcName) |
Creates a file required for offline activation. More... | |
ZDK_NET::Result ^ | CreateOfflineActivationFileSDK (System::String^ activationFile, System::String^ username, System::String^ password) |
Creates a file required for offline activation. More... | |
virtual long long | Handle () override |
virtual void | Initialize () override |
virtual void | ReleaseReference () override |
Public Attributes | |
ZDK::IActivation * | cppRef = nullptr |
Properties | |
bool | Activated [get] |
Gets the activation status. More... | |
Handles the Activation process of the ZDK.
bool ZDK_NET::Activation::CheckCodecPermission | ( | ZDK_NET::AudioVideoCodecs | value | ) |
Gets whether a given media (audio/video) codec is enabled and can be used.
[in] | value | Codec to be checked |
bool ZDK_NET::Activation::CheckHostname | ( | System::String^ | value | ) |
Gets whether a given hostname (domain) is allowed to be used.
[in] | value | Hostname (domain) to be checked |
bool ZDK_NET::Activation::CheckPermission | ( | ZDK_NET::PermissionType | value | ) |
Gets whether a given ZDK functionality is enabled and can be used.
[in] | value | Functionality to be checked |
ZDK_NET::Result ^ ZDK_NET::Activation::CreateOfflineActivationFile | ( | System::String^ | activationFile, |
System::String^ | username, | ||
System::String^ | password, | ||
System::String^ | hddSerial, | ||
System::String^ | version, | ||
System::String^ | pcUser, | ||
System::String^ | pcName | ||
) |
Creates a file required for offline activation.
For Zoiper internal use only! For SDK builds see CreateOfflineActivationFileSDK()! Creates a file required for offline activation
[in] | activationFile | File name (including full path to it!) |
[in] | username | The username for the account to be activated |
[in] | password | The password for the activation of the account |
[in] | hddSerial | The HDD serial number |
[in] | version | The build version as configured on the cert site. This is the "version" URL parameter |
[in] | pcUser | The user name |
[in] | pcName | The device name |
ZDK_NET::Result ^ ZDK_NET::Activation::CreateOfflineActivationFileSDK | ( | System::String^ | activationFile, |
System::String^ | username, | ||
System::String^ | password | ||
) |
Creates a file required for offline activation.
For SDK products only! For Zoiper internal use see CreateOfflineActivationFile()! Creates a file required for offline activation
[in] | activationFile | File name (including full path to it!) |
[in] | username | the Username for the account to be activated |
[in] | password | the Password for the activation of the account |
ZDK_NET::Result ^ ZDK_NET::Activation::Start | ( | System::String^ | certCacheFile, |
System::String^ | moduleName, | ||
int | opFlags, | ||
System::String^ | username, | ||
System::String^ | password, | ||
System::String^ | version, | ||
System::String^ | certPem | ||
) |
Starts activation process.
For Zoiper internal use only! For SDK builds see StartSDK()!
Starts activation process of the product. Without activation, much of the functionality is not allowed. Activation first tries to use data from a certificate cache file, the path to which is supplied by the user. If the file is available and valid for the current device, it's contents will be used to set the allowed functionalities. If file is invalid OR not present, the SDK will make an HTTP request to a licensing server. On valid response the results from the server will be used to configure functionality availability and, if the location supplied by the user in certCacheFile is valid and writable, the results will be stored there so that the cache file can be used on next invocation.
The activation process is doing a GET request constructed from the arguments of the function. The base URL of the GET request can be changed if the baseUrl parameter is not NULL.
All of the parameter values will be properly URL escaped by the library and MUST NOT be already URL escaped when being passed to this function.
The password parameter will be scrambled using MD5 and the result will be converted to a hex string before passing it to the web server. It MUST NOT be pre-processed in any way before passing it to this function.
[in] | certCacheFile | If non-zero, it is a UTF-8 file name which is used to cache the certificate received from the server. If such file does not exist, the usual HTTP (online) activation is initiated, if possible. After a successful online activation, the resulting certificate will be stored in the file. |
[in] | moduleName | Provides support for DLL products using this ZDK as a static library. This is not for the case where ZDK is used as a DLL. In that case the moduleName is ignored. In the case where ZDK is a static library used to link a DLL project, and that DLL project is used by an external application, the checksum must be calculated from the DLL, not the main application. In this case moduleName is needed to hint the Activation object when it tries to discover the file from which we're loaded. |
[in] | opFlags | A bit field flag controlling the activation options - ActivationFlags enum |
[in] | username | Client's username ("username" URL parameter) |
[in] | password | Client's password ("password" URL parameter) |
[in] | version | The phone build version as configured on the cert site. This is the "version" URL parameter |
[in] | certPem | The certificate issued by the cert server for this specific phone build. Must match the certificate on the server. |
ZDK_NET::Result ^ ZDK_NET::Activation::StartSDK | ( | System::String^ | certCacheFile, |
System::String^ | username, | ||
System::String^ | password | ||
) |
Starts activation for an SDK product.
For SDK products only! For Zoiper internal use see Start()!
Starts activation process of the SDK product. Without activation, much of the functionality is not allowed. Activation first tries to use data from a certificate cache file, the path to which is supplied by the user. If the file is available and valid for the current device, it's contents will be used to set the allowed functionalities. If file is invalid OR not present, the SDK will make an HTTP request to a licensing server. On valid response the results from the server will be used to configure functionality availability and, if the location supplied by the user in certCacheFile is valid and writable, the results will be stored there so that the cache file can be used on next invocation.
The activation process is doing a GET request constructed from the arguments of the function. The base URL of the GET request can be changed if the baseUrl parameter is not NULL.
All of the parameter values will be properly URL escaped by the library and MUST NOT be already URL escaped when being passed to this function.
The password parameter will be scrambled using MD5 and the result will be converted to a hex string before passing it to the web server. It MUST NOT be pre-processed in any way before passing it to this function.
[in] | certCacheFile | If non-zero, it is a UTF-8 file name which is used to cache the certificate received from the server. If such file does not exist, the usual HTTP (online) activation is initiated, if possible. After a successful online activation, the resulting certificate will be stored in the file. |
[in] | username | Username to use for authentication to the cert server |
[in] | password | Password to use for authentication to the cert server |
|
get |
Gets the activation status.