public class Activation
extends java.lang.Object
Constructor and Description |
---|
Activation(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
boolean |
activated()
Gets the activation status
|
boolean |
checkCodecPermission(AudioVideoCodecs value)
Gets whether a given media (audio/video) codec is enabled and can be used
|
boolean |
checkHostname(java.lang.String value)
Gets whether a given hostname (domain) is allowed to be used
|
boolean |
checkPermission(PermissionType value)
Gets whether a given ZDK functionality is enabled and can be used
|
Result |
createOfflineActivationFile(java.lang.String activationFile,
java.lang.String username,
java.lang.String password,
java.lang.String hddSerial,
java.lang.String version,
java.lang.String pcUser,
java.lang.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
1.
|
Result |
createOfflineActivationFileSDK(java.lang.String activationFile,
java.lang.String username,
java.lang.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
1.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
Result |
start(java.lang.String certCacheFile,
java.lang.String moduleName,
int opFlags,
java.lang.String username,
java.lang.String password,
java.lang.String version,
java.lang.String certPem)
Starts activation process
For Zoiper internal use only! For SDK builds see startSDK!
Starts activation process of the product.
|
Result |
startSDK(java.lang.String certCacheFile,
java.lang.String username,
java.lang.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.
|
Result |
stop()
Stops the activation process
Cancels any activation in progress.
|
public Activation(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean activated()
public Result start(java.lang.String certCacheFile, java.lang.String moduleName, int opFlags, java.lang.String username, java.lang.String password, java.lang.String version, java.lang.String certPem)
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.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 @p 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 @p moduleName is needed to hint the Activation object
when it tries to discover the file from which we're loaded.opFlags
- A bit field flag controlling the activation options - ActivationFlags enumusername
- Client's username ("username" URL parameter)password
- Client's password ("password" URL parameter)version
- The phone build version as configured on the cert site. This is the "version" URL parametercertPem
- The certificate issued by the cert server for this specific phone build. Must match the
certificate on the server.stop onContextActivationCompleted Result ActivationFlags
public Result startSDK(java.lang.String certCacheFile, java.lang.String username, java.lang.String password)
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.username
- Username to use for authentication to the cert serverpassword
- Password to use for authentication to the cert serverstop onContextActivationCompleted Result
public Result stop()
Result
public boolean checkPermission(PermissionType value)
value
- Functionality to be checkedPermissionType
public boolean checkCodecPermission(AudioVideoCodecs value)
value
- Codec to be checkedAudioVideoCodecs
public boolean checkHostname(java.lang.String value)
value
- Hostname (domain) to be checkedpublic Result createOfflineActivationFile(java.lang.String activationFile, java.lang.String username, java.lang.String password, java.lang.String hddSerial, java.lang.String version, java.lang.String pcUser, java.lang.String pcName)
activationFile
- File name (including full path to it!)username
- The username for the account to be activatedpassword
- The password for the activation of the accounthddSerial
- The HDD serial numberversion
- The build version as configured on the cert site. This is the "version" URL parameterpcUser
- The user namepcName
- The device namestart
public Result createOfflineActivationFileSDK(java.lang.String activationFile, java.lang.String username, java.lang.String password)
activationFile
- File name (including full path to it!)username
- the Username for the account to be activatedpassword
- the Password for the activation of the accountstartSDK