PDFix SDK  6.5.0
PsAuthorization Struct Referenceabstract

PsAuthorization class. More...

Inheritance diagram for PsAuthorization:
PsAccountAuthorization PsStandardAuthorization

Public Member Functions

virtual bool SaveToStream (PsStream *stream, PsDataFormat format)=0
 Save the current autorization state into a data file. . More...
 
virtual bool IsAuthorized ()=0
 Returns authorization state. More...
 
virtual bool IsAuthorizedPlatform (PdfAuthPlatform platform)=0
 Returns authorization state of the platform. More...
 
virtual bool IsAuthorizedOption (PdfAuthOption option)=0
 Returns authorization state of the version. More...
 
virtual PdfAuthorizationType GetType ()=0
 Returns authorization type. More...
 

Detailed Description

PsAuthorization class.

PsAuthorization controls the authorization state of the library.

Member Function Documentation

◆ GetType()

virtual PdfAuthorizationType PsAuthorization::GetType ( )
pure virtual

Returns authorization type.

Returns
authorization type.

◆ IsAuthorized()

virtual bool PsAuthorization::IsAuthorized ( )
pure virtual

Returns authorization state.

Returns
true if PDFix was authorized, false othervise.

◆ IsAuthorizedOption()

virtual bool PsAuthorization::IsAuthorizedOption ( PdfAuthOption  option)
pure virtual

Returns authorization state of the version.

Returns
true if PDFix was authorized for this option, false othervise.

◆ IsAuthorizedPlatform()

virtual bool PsAuthorization::IsAuthorizedPlatform ( PdfAuthPlatform  platform)
pure virtual

Returns authorization state of the platform.

Returns
true if PDFix was authorized for this platform, false othervise.

◆ SaveToStream()

virtual bool PsAuthorization::SaveToStream ( PsStream stream,
PsDataFormat  format 
)
pure virtual

Save the current autorization state into a data file. .

Parameters
streamPsStream where to save license data in requested format.
formatFormat of the source stream. JSON and XML format is supported.
Returns
true if succeeded, false otherwise.