PDFix SDK  9.0.0
Loading...
Searching...
No Matches
PsStandardAuthorization Struct Referenceabstract

PsStandardAuthorization class. More...

#include <pdfix.h>

Inheritance diagram for PsStandardAuthorization:
PsAuthorization

Public Member Functions

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.
Public Member Functions inherited from PsAuthorization
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.

Detailed Description

PsStandardAuthorization class.

PsStandardAuthorization controls the authorization of the library using an activation code.

Member Function Documentation

◆ 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_numberThe 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_filepath 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_numberThe license key.
activation_request_filepath 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_filepath 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
localUpdate 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
localUpdate the license from a local file if true, over the internet if false
Returns
true if the authorization state was updated successfuly, false otherwise.