DFACE C++  5.0.0
DfaceAccredit Class Referenceabstract

License API. More...

#include <dface_accredit.h>

Public Member Functions

 DfaceAccredit ()
 
virtual ~DfaceAccredit ()
 
virtual int login ()=0
 
virtual int updateOnline (char *authCode)=0
 
virtual int updateOfline (char *acFilePath)=0
 
virtual int logout ()=0
 
virtual int getDeviceFingerPrint (const char *authCode, char *fingerPrintInfo, unsigned int *fingerPrintSize)=0
 
virtual int setRootPath (char *path)=0
 
virtual int getVersion ()=0
 
virtual int remove (const char *authCode)=0
 
virtual int setLocalServer (const char *hostName, uint32_t port, uint32_t timeoutSeconds)=0
 
virtual int setProxy (const char *hostName, uint32_t port, const char *userId, const char *password)=0
 
virtual int revokeOnline (const char *authCode)=0
 
virtual int revokeOffline (const char *authCode, char *revocationInfo, unsigned int *revocationInfoSize)=0
 
virtual int getInfo (const char *authCode, int type, char *pInfo, uint32_t *pInfoSize)=0
 

Detailed Description

License API.

Constructor & Destructor Documentation

DfaceAccredit::DfaceAccredit ( )
inline

Constructor

virtual DfaceAccredit::~DfaceAccredit ( )
inlinevirtual

Destructor

Member Function Documentation

virtual int DfaceAccredit::getDeviceFingerPrint ( const char *  authCode,
char *  fingerPrintInfo,
unsigned int *  fingerPrintSize 
)
pure virtual

Get device fingerPrint information

Parameters
[in]authCodeActivation code
[out]fingerPrintInfoOutput fingerPrint information
[out]fingerPrintSizeOutput fingerPrint information size
Returns
0:success, other:Error Code
virtual int DfaceAccredit::getInfo ( const char *  authCode,
int  type,
char *  pInfo,
uint32_t *  pInfoSize 
)
pure virtual

get license information

Parameters
[in]authCode
[in]type
See also
LICENSE_INFO_TYPE enum(INFO_SN, INFO_SN_FEATURE, INFO_SN_LICENSE)
Parameters
[out]pInfo,information,xmlformat
[out]pInfoSize,informationbyte size
Returns
0:success, other:Error Code
virtual int DfaceAccredit::getVersion ( )
pure virtual

License tool version

Returns
: version number
virtual int DfaceAccredit::login ( )
pure virtual

License tool login

Returns
0:success other:Error Code
virtual int DfaceAccredit::logout ( )
pure virtual

License tool logout

Returns
0:success, other:Error Code
virtual int DfaceAccredit::remove ( const char *  authCode)
pure virtual

Remove license

Parameters
[in]licenseauthCode code
Returns
0:success, other:Error Code
virtual int DfaceAccredit::revokeOffline ( const char *  authCode,
char *  revocationInfo,
unsigned int *  revocationInfoSize 
)
pure virtual

Revoke license offline

Parameters
[in]authCodeActivation code
[out]revocationInfoout revoke request information
[out]revocationInfoSizeout revoke request information size
Returns
0:success, other:Error Code
virtual int DfaceAccredit::revokeOnline ( const char *  authCode)
pure virtual

Revoke license online

Parameters
[in]authCodeActivation code
Returns
0:success, other:Error Code
virtual int DfaceAccredit::setLocalServer ( const char *  hostName,
uint32_t  port,
uint32_t  timeoutSeconds 
)
pure virtual

Set group authorize server IP:port

Parameters
hostNameip
portport
timeoutSecondstimeout sseconds
Returns
0:success, other:Error Code
virtual int DfaceAccredit::setProxy ( const char *  hostName,
uint32_t  port,
const char *  userId,
const char *  password 
)
pure virtual

Set Proxy server IP:port

Parameters
hostNameip
portport
userIdProxy user id
passwordProxy user password
Returns
0:success, other:Error Code
virtual int DfaceAccredit::setRootPath ( char *  path)
pure virtual

Set environment root path

Parameters
[in]pathRoot path
Returns
0:success, other:Error Code
virtual int DfaceAccredit::updateOfline ( char *  acFilePath)
pure virtual

OffLine license authorize

Parameters
[in]acFilePathlicense authorize file path
Returns
0:success, other:Error Code
virtual int DfaceAccredit::updateOnline ( char *  authCode)
pure virtual

Online license authorize

Parameters
[in]authCodelicense authorize code
Returns
0:success, other:Error Code

The documentation for this class was generated from the following file: