PsStandardAuthorization class.
More...
#include <pdfix.h>
|
| virtual bool | Activate (const wchar_t *serial_number)=0 |
| | Activates the library using the activation license key. The method requires internet access.
|
| virtual bool | CreateOfflineActivationFile (const wchar_t *serial_number, const wchar_t *activation_request_file)=0 |
| | Create license activation request file for offline activation.
|
| virtual bool | ActivateOffline (const wchar_t *activation_file)=0 |
| | Activates the library using the activation response file.
|
| virtual bool | Deactivate ()=0 |
| | Deactivates the library. The method requires internet access.
|
| virtual bool | DeactivateOffline (const wchar_t *deactivation_request_file)=0 |
| | Create license deactivation file for offline deactivation.
|
| virtual bool | Update (bool local)=0 |
| | Updates the autorization state. The method requires internet access .
|
| virtual bool | UpdateOffline (const wchar_t *update_file)=0 |
| | Updates the autorization state. The method requires internet access .
|
| virtual bool | Reset ()=0 |
| | Reset the autorization and delete all local data.
|
| virtual bool | SaveToStream (PsStream *stream, PsDataFormat format)=0 |
| | Save the current autorization state into a data file. .
|
| virtual bool | IsAuthorized ()=0 |
| | Returns authorization state.
|
| virtual bool | IsAuthorizedPlatform (PdfAuthPlatform platform)=0 |
| | Returns authorization state of the platform.
|
| virtual bool | IsAuthorizedOption (PdfAuthOption option)=0 |
| | Returns authorization state of the version.
|
| virtual PdfAuthorizationType | GetType () const =0 |
| | Returns authorization type.
|
PsStandardAuthorization class.
PsStandardAuthorization controls the authorization of the library using an activation code.
◆ Activate()
| virtual bool PsStandardAuthorization::Activate |
( |
const wchar_t * | serial_number | ) |
|
|
pure virtual |
Activates the library using the activation license key. The method requires internet access.
- Parameters
-
| serial_number | The license key. |
- Returns
- true if the library was activated successfuly, false otherwise.
◆ ActivateOffline()
| virtual bool PsStandardAuthorization::ActivateOffline |
( |
const wchar_t * | activation_file | ) |
|
|
pure virtual |
Activates the library using the activation response file.
- Parameters
-
| activation_file | path to local license activation file |
- Returns
- true if the library was activated successfuly, false otherwise.
◆ CreateOfflineActivationFile()
| virtual bool PsStandardAuthorization::CreateOfflineActivationFile |
( |
const wchar_t * | serial_number, |
|
|
const wchar_t * | activation_request_file ) |
|
pure virtual |
Create license activation request file for offline activation.
- Parameters
-
| serial_number | The license key. |
| activation_request_file | path to local deactivation request file |
- Returns
- true if the license activation request file was created, false otherwise.
◆ Deactivate()
| virtual bool PsStandardAuthorization::Deactivate |
( |
| ) |
|
|
pure virtual |
Deactivates the library. The method requires internet access.
- Returns
- true if the library was deactivated successfuly, false otherwise.
◆ DeactivateOffline()
| virtual bool PsStandardAuthorization::DeactivateOffline |
( |
const wchar_t * | deactivation_request_file | ) |
|
|
pure virtual |
Create license deactivation file for offline deactivation.
- Parameters
-
| deactivation_request_file | path to local deactivation request file |
- Returns
- true if the library was deactivated successfuly, false otherwise.
◆ Reset()
| virtual bool PsStandardAuthorization::Reset |
( |
| ) |
|
|
pure virtual |
Reset the autorization and delete all local data.
- Returns
- true if the authorization local data was removed successfuly, false otherwise.
◆ Update()
| virtual bool PsStandardAuthorization::Update |
( |
bool | local | ) |
|
|
pure virtual |
Updates the autorization state. The method requires internet access .
- Parameters
-
| local | Update the license from a local file if true, over the internet if false |
- Returns
- true if the authorization state was updated successfuly, false otherwise.
◆ UpdateOffline()
| virtual bool PsStandardAuthorization::UpdateOffline |
( |
const wchar_t * | update_file | ) |
|
|
pure virtual |
Updates the autorization state. The method requires internet access .
- Parameters
-
| local | Update the license from a local file if true, over the internet if false |
- Returns
- true if the authorization state was updated successfuly, false otherwise.