|
virtual ZDK::Shared::Result | Start (ZDK::Shared::String certCacheFile, ZDK::Shared::String moduleName, int opFlags, ZDK::Shared::String username, ZDK::Shared::String password, ZDK::Shared::String version, ZDK::Shared::String certPem)=0 |
| Starts activation process. More...
|
|
virtual ZDK::Shared::Result | StartSDK (ZDK::Shared::String certCacheFile, ZDK::Shared::String username, ZDK::Shared::String password)=0 |
| Starts activation for an SDK product. More...
|
|
virtual ZDK::Shared::Result | Stop ()=0 |
| Stops the activation process. More...
|
|
virtual bool | Activated () const =0 |
| Gets the activation status. More...
|
|
virtual bool | CheckPermission (ZDK::PermissionType value) const =0 |
| Gets whether a given ZDK functionality is enabled and can be used. More...
|
|
virtual bool | CheckCodecPermission (ZDK::AudioVideoCodecs value) const =0 |
| Gets whether a given media (audio/video) codec is enabled and can be used. More...
|
|
virtual bool | CheckHostname (const ZDK::Shared::String value) const =0 |
| Gets whether a given hostname (domain) is allowed to be used. More...
|
|
virtual ZDK::Shared::Result | SetDeviceId (const ZDK::Shared::String value)=0 |
| Sets the current device ID. More...
|
|
virtual ZDK::Shared::Result | SetPackageName (const ZDK::Shared::String value)=0 |
| Sets the current package name. More...
|
|
virtual ZDK::Shared::Result | CreateOfflineActivationFile (ZDK::Shared::String activationFile, ZDK::Shared::String username, ZDK::Shared::String password, ZDK::Shared::String hddSerial, ZDK::Shared::String version, ZDK::Shared::String pcUser, ZDK::Shared::String pcName)=0 |
| Creates a file required for offline activation. More...
|
|
virtual ZDK::Shared::Result | CreateOfflineActivationFileSDK (ZDK::Shared::String activationFile, ZDK::Shared::String username, ZDK::Shared::String password)=0 |
| Creates a file required for offline activation. More...
|
|
Public Member Functions inherited from ZDK::IZHandle |
virtual ZDK::ZDKHandle | Handle () const =0 |
|
virtual | operator ZDK::ZDKHandle () const =0 |
|
virtual void | Initialize ()=0 |
|
virtual void | ReleaseReference ()=0 |
|
Handles the Activation process of the ZDK.
virtual ZDK::Shared::Result ZDK::IActivation::Start |
( |
ZDK::Shared::String |
certCacheFile, |
|
|
ZDK::Shared::String |
moduleName, |
|
|
int |
opFlags, |
|
|
ZDK::Shared::String |
username, |
|
|
ZDK::Shared::String |
password, |
|
|
ZDK::Shared::String |
version, |
|
|
ZDK::Shared::String |
certPem |
|
) |
| |
|
pure virtual |
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.
- Parameters
-
[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. |
- Returns
- Result of the invocation
- See also
- StartSDK(), Stop(), OnContextActivationCompleted(), IResult, ActivationFlags
virtual ZDK::Shared::Result ZDK::IActivation::StartSDK |
( |
ZDK::Shared::String |
certCacheFile, |
|
|
ZDK::Shared::String |
username, |
|
|
ZDK::Shared::String |
password |
|
) |
| |
|
pure virtual |
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.
- Parameters
-
[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 |
- Returns
- Result of the invocation
- See also
- Start(), Stop(), OnContextActivationCompleted(), IResult